Method | Description | |
---|---|---|
__construct ( MongoDB\Collection $collection ) | ||
createCollection ( MongoDB\Driver\Manager $manager, string $database, string $collection ) : MongoDB\Collection |
Method | Description | |
---|---|---|
clearAllObjectsFromCache ( ) | ||
clearOneObjectFromCache ( $key ) | ||
fetchObjectFromCache ( $key ) | ||
storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl ) |
public __construct ( MongoDB\Collection $collection ) | ||
$collection | MongoDB\Collection |
public static createCollection ( MongoDB\Driver\Manager $manager, string $database, string $collection ) : MongoDB\Collection | ||
$manager | MongoDB\Driver\Manager | |
$database | string | |
$collection | string | |
return | MongoDB\Collection |
protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl ) | ||
$item | Psr\Cache\CacheItemInterface |