Bug Report #2108

Inconsistencies in cache drivers handling of "unset" keys..

Added by Kiall Mac Innes over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:09/14/2009
Priority:Normal Due date:
Assignee:Kiall Mac Innes % Done:

100%

Category:Libraries:Cache
Target version:2.4
Resolution:fixed Points:

Description

Cache::instance()->get(array('key1', 'key2', 'key-that-does-not-exist'));

should always return:

array('key1' => 'value1', 'key2' => 'value2' ,'key-that-does-not-exist' => NULL);

History

Updated by Kiall Mac Innes over 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed

This should be fixed now - but not quite as shown above.

Cache::instance()->get(array('key1', 'key2', 'key-that-does-not-exist'));

will return

array('key1' => 'value1', 'key2' => 'value2')

Also available in: Atom PDF