예제 #1
0
 /**
  * Encode the Object Id using the Persistence Identifier
  *
  *
  */
 public function testEncode()
 {
     self::assertSame('4ed727fa6a2dcc72e95e08559129b2cc6ca9bf7210052c4d832c7b6f4250715113cc5ef99adeb19234545febf150b9b9bdd069a1' . '6c902179e74b97fecff02018', $this->object->encode('test', 'testValue'));
 }
예제 #2
0
 /**
  * Encode the Object Id using the Persistence Identifier
  */
 public function testEncode()
 {
     self::assertSame('1fc1cef6f6fc08a4f9f1c56aff2bb23f16690432ca2ac89a574400afd3b529962f34d9c0467581c09b0c7a12e80ab21368bcb57884f93165a3b9154e55789767', $this->object->encode('test', 'testValue'));
 }
예제 #3
0
 /**
  * normalizes the cache id for the cache
  *
  * @param string $cacheId The cache id
  *
  * @return string The formated cache id
  */
 protected function normalizeKey($cacheId)
 {
     return Helper\IdGenerator::encode($this->cacheVersion, $this->namespace, $cacheId);
 }