Bug Report #2108

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

Added by Kiall Mac Innes about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:09/14/2009
Priority:NormalDue 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

#1 Updated by Kiall Mac Innes about 5 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