You are here

function dmemcache_unserialize in Memcache API and Integration 7

Return proper unserialize function.

1 call to dmemcache_unserialize()
_dmemcache_get_pieces in ./dmemcache.inc
Retrieve a value from the cache.

File

./dmemcache.inc, line 787
A memcache API for Drupal.

Code

function dmemcache_unserialize() {
  switch (dmemcache_serialize_extension()) {
    case 'igbinary':
      return 'igbinary_unserialize';
    case 'msgpack':
      return 'msgpack_unpack';
    default:
      return 'unserialize';
  }
}