\Everyman\Neo4j\CacheEntityCache

Store and retrieve cached entities without hitting the server

Summary

Methods
Properties
Constants
__construct()
deleteCachedEntity()
getCachedEntity()
setCache()
setCachedEntity()
No public properties found
No constants found
getCache()
getEntityCacheKey()
$client
$cache
$cacheTimeout
N/A
No private methods found
No private properties found
N/A

Properties

$client

$client : 

Type

$cache

$cache : 

Type

$cacheTimeout

$cacheTimeout : 

Type

Methods

__construct()

__construct(\Everyman\Neo4j\Client $client, \Everyman\Neo4j\Cache $cache, integer $cacheTimeout)

Set the client and caching plugin to use

Parameters

\Everyman\Neo4j\Client $client
\Everyman\Neo4j\Cache $cache
integer $cacheTimeout

deleteCachedEntity()

deleteCachedEntity(\Everyman\Neo4j\PropertyContainer $entity)

Delete an entity from the cache

Parameters

\Everyman\Neo4j\PropertyContainer $entity

getCachedEntity()

getCachedEntity(integer $id, string $type)

Get an entity from the cache

Parameters

integer $id
string $type

setCache()

setCache(\Everyman\Neo4j\Cache $cache, integer $cacheTimeout)

Set the cache to use

Parameters

\Everyman\Neo4j\Cache $cache
integer $cacheTimeout

getEntityCacheKey()

getEntityCacheKey(\Everyman\Neo4j\PropertyContainer $entity) : string

Determine the cache key used to retrieve the given entity from the cache

Parameters

\Everyman\Neo4j\PropertyContainer $entity

Returns

string