W3cubDocs

/Symfony 2.7

Symfony\Component\Security\Acl\Model\AclCacheInterface

interface AclCacheInterface

AclCache Interface

Methods

evictFromCacheById(string $primaryKey)

Removes an ACL from the cache

evictFromCacheByIdentity(ObjectIdentityInterface $oid)

Removes an ACL from the cache

AclInterface getFromCacheById(int $primaryKey)

Retrieves an ACL for the given object identity primary key from the cache

AclInterface getFromCacheByIdentity(ObjectIdentityInterface $oid)

Retrieves an ACL for the given object identity from the cache

putInCache(AclInterface $acl)

Stores a new ACL in the cache

clearCache()

Removes all ACLs from the cache

Details

public evictFromCacheById(string $primaryKey)

Removes an ACL from the cache

Parameters

string $primaryKey a serialized primary key

public evictFromCacheByIdentity(ObjectIdentityInterface $oid)

Removes an ACL from the cache

The ACL which is returned, must reference the passed object identity.

Parameters

ObjectIdentityInterface $oid

public AclInterface getFromCacheById(int $primaryKey)

Retrieves an ACL for the given object identity primary key from the cache

Parameters

int $primaryKey

Return Value

AclInterface

public AclInterface getFromCacheByIdentity(ObjectIdentityInterface $oid)

Retrieves an ACL for the given object identity from the cache

Parameters

ObjectIdentityInterface $oid

Return Value

AclInterface

public putInCache(AclInterface $acl)

Stores a new ACL in the cache

Parameters

AclInterface $acl

public clearCache()

Removes all ACLs from the cache

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Model/AclCacheInterface.html