PHP 클래스 Cache\Adapter\MongoDB\MongoDBCachePool

저자: Tobias Nyholm ([email protected])
상속: extends Cache\Adapter\Common\AbstractCachePool
파일 보기 프로젝트 열기: php-cache/cache 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( MongoDB\Collection $collection )
createCollection ( MongoDB\Driver\Manager $manager, string $database, string $collection ) : MongoDB\Collection

보호된 메소드들

메소드 설명
clearAllObjectsFromCache ( )
clearOneObjectFromCache ( $key )
fetchObjectFromCache ( $key )
storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )

메소드 상세

__construct() 공개 메소드

public __construct ( MongoDB\Collection $collection )
$collection MongoDB\Collection

clearAllObjectsFromCache() 보호된 메소드

protected clearAllObjectsFromCache ( )

clearOneObjectFromCache() 보호된 메소드

protected clearOneObjectFromCache ( $key )

createCollection() 공개 정적인 메소드

public static createCollection ( MongoDB\Driver\Manager $manager, string $database, string $collection ) : MongoDB\Collection
$manager MongoDB\Driver\Manager
$database string
$collection string
리턴 MongoDB\Collection

fetchObjectFromCache() 보호된 메소드

protected fetchObjectFromCache ( $key )

storeItemInCache() 보호된 메소드

protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )
$item Psr\Cache\CacheItemInterface