You are here

protected static function MemcacheStorageAPI::initialDebugActions in Memcache Storage 7

First step of debug logging. Start timer and get usage of memory before memcache action.

6 calls to MemcacheStorageAPI::initialDebugActions()
MemcacheStorageAPI::add in ./memcache_storage.api.inc
Save data into memcached pool if key doesn't exist. Provide debug logging.
MemcacheStorageAPI::delete in ./memcache_storage.api.inc
Delete value from memcached pool. Provide debug logging.
MemcacheStorageAPI::deleteMultiple in ./memcache_storage.api.inc
Delete multiple cache items from memcached pool. Provide debug logging.
MemcacheStorageAPI::getMultiple in ./memcache_storage.api.inc
Get values from memcache storage. Provide debug logging.
MemcacheStorageAPI::replace in ./memcache_storage.api.inc
Replace existing data in memcache pool. Provide debug logging.

... See full list

File

./memcache_storage.api.inc, line 600
Provide class that processes memcached operations.

Class

MemcacheStorageAPI
Integrates with memcache API.

Code

protected static function initialDebugActions() {
  $mem_usage =& drupal_static('memcache_storage_debug_mem_usage', array());

  // Start count time spent on setting data to memcache.
  timer_start(self::$debug_key);

  // Get memory usage before set new value into cache.
  $mem_usage[self::$debug_key] = memory_get_usage();
}