Sokil\Mongo\Cache::__construct PHP Method

__construct() public method

public __construct ( Database $database, $collectionName )
$database Database
    public function __construct(Database $database, $collectionName)
    {
        $this->collection = $database->map($collectionName, array('index' => array(array('keys' => array(self::FIELD_NAME_EXPIRED => 1), 'expireAfterSeconds' => 0))))->getCollection($collectionName)->disableDocumentPool();
    }