PHP 인터페이스 LdapTools\Cache\CacheInterface

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 0 사용 예제들

공개 메소드들

메소드 설명
contains ( string $itemType, string $itemName ) : boolean Whether the item is in the cache.
delete ( string $type, string $name ) Delete a specific item from the cache.
deleteAll ( ) : boolean Delete all items from the cache.
get ( $itemType, $itemName ) : mixed Retrieve an item from the cache. If it is not in the cache it should return null. However, you should call the contains method first rather than relying on that value.
getCacheCreationTime ( $itemType, $itemName ) : boolean | DateTime Retrieve the time a cache item was created. Return false if there is no item in the cache.
getUseAutoCache ( ) : boolean Whether to auto refresh cache based on creation/modification times instead of a manual process.
set ( LdapTools\Cache\CacheableItemInterface $item ) Cache an item.
setOptions ( array $options ) Sets any configured options for the Cache type.

메소드 상세

contains() 공개 메소드

Whether the item is in the cache.
public contains ( string $itemType, string $itemName ) : boolean
$itemType string
$itemName string
리턴 boolean

delete() 공개 메소드

Delete a specific item from the cache.
public delete ( string $type, string $name )
$type string The item type.
$name string The item name.

deleteAll() 공개 메소드

Delete all items from the cache.
public deleteAll ( ) : boolean
리턴 boolean

get() 공개 메소드

Retrieve an item from the cache. If it is not in the cache it should return null. However, you should call the contains method first rather than relying on that value.
public get ( $itemType, $itemName ) : mixed
$itemType
$itemName
리턴 mixed

getCacheCreationTime() 공개 메소드

Retrieve the time a cache item was created. Return false if there is no item in the cache.
public getCacheCreationTime ( $itemType, $itemName ) : boolean | DateTime
$itemType
$itemName
리턴 boolean | DateTime

getUseAutoCache() 공개 메소드

Whether to auto refresh cache based on creation/modification times instead of a manual process.
public getUseAutoCache ( ) : boolean
리턴 boolean

set() 공개 메소드

Cache an item.
public set ( LdapTools\Cache\CacheableItemInterface $item )
$item LdapTools\Cache\CacheableItemInterface

setOptions() 공개 메소드

Sets any configured options for the Cache type.
public setOptions ( array $options )
$options array