You are here

function _dmemcache_key_piece in Memcache API and Integration 7

Same name and namespace in other branches
  1. 6 dmemcache.inc \_dmemcache_key_piece()

Generates a key name for a multi-part data piece based on the sequence ID.

Parameters

int $id: The sequence ID of the data piece.

int $key: The original CID of the cache item.

Return value

string

3 calls to _dmemcache_key_piece()
dmemcache_delete in ./dmemcache.inc
Deletes an item from the cache.
_dmemcache_get_pieces in ./dmemcache.inc
Retrieve a value from the cache.
_dmemcache_set_pieces in ./dmemcache.inc
Split a large item into pieces and place them into memcache

File

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

Code

function _dmemcache_key_piece($key, $id) {
  return dmemcache_key('_multi' . (string) $id . "-{$key}");
}