PHP 클래스 Doctrine\Common\Cache\MongoDBCache

부터: 1.1
저자: Jeremy Mikola ([email protected])
상속: extends CacheProvider
파일 보기 프로젝트 열기: doctrine/cache 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( MongoCollection $collection ) Constructor.

보호된 메소드들

메소드 설명
doContains ( $id )
doDelete ( $id )
doFetch ( $id )
doFlush ( )
doGetStats ( )
doSave ( $id, $data, $lifeTime )

비공개 메소드들

메소드 설명
isExpired ( array $document ) : boolean Check if the document is expired.

메소드 상세

__construct() 공개 메소드

This provider will default to the write concern and read preference options set on the MongoCollection instance (or inherited from MongoDB or MongoClient). Using an unacknowledged write concern (< 1) may make the return values of delete() and save() unreliable. Reading from secondaries may make contain() and fetch() unreliable.
또한 보기: http://www.php.net/manual/en/mongo.readpreferences.php
또한 보기: http://www.php.net/manual/en/mongo.writeconcerns.php
public __construct ( MongoCollection $collection )
$collection MongoCollection

doContains() 보호된 메소드

protected doContains ( $id )

doDelete() 보호된 메소드

protected doDelete ( $id )

doFetch() 보호된 메소드

protected doFetch ( $id )

doFlush() 보호된 메소드

protected doFlush ( )

doGetStats() 보호된 메소드

protected doGetStats ( )

doSave() 보호된 메소드

protected doSave ( $id, $data, $lifeTime )