moodle/cache/stores
Russell Smith ae21341523 MDL-40538 caching: Use isset for performance
isset is much faster than array_key_exists. For caches we need to
ensure as much performance as possible. To all null to continue to
be stored and provide correct results, non ttl also now saves in
$this->store[$key][0].  As isset($this->store[$key]) will return
true in all cases.

time() as found in cache::now() can be slow on some platforms and
we shouldn't bother checking it unless needed. It also stops non-ttl
caches paying the ttl price.

Unit tests were adjusted to ensure null is still handled correctly
when we are only using isset.
2013-07-10 10:15:19 +10:00
..
file MDL-40100 cache: removed unneeded includes from add instance forms 2013-06-10 10:23:28 +12:00
memcache MDL-40100 cache: removed unneeded includes from add instance forms 2013-06-10 10:23:28 +12:00
memcached Merge branch 'MDL-39473-master' of git://github.com/sammarshallou/moodle 2013-05-06 14:32:33 +01:00
mongodb MDL-40100 cache: removed unneeded includes from add instance forms 2013-06-10 10:23:28 +12:00
session MDL-40538 caching: Use isset for performance 2013-07-10 10:15:19 +10:00
static MDL-40538 caching: Use isset for performance 2013-07-10 10:15:19 +10:00