/
var
/
www
/
cobraambalaj
/
vendor
/
doctrine
/
cache
/
lib
/
Doctrine
/
Common
/
Cache
/
/var/www/cobraambalaj/vendor/doctrine/cache/lib/Doctrine/Common/Cache
mkdir
upload
Name
Size
Mode
Actions
ApcCache.php
2384
0644
edit
dl
rm
ApcuCache.php
2168
0644
edit
dl
rm
ArrayCache.php
2077
0644
edit
dl
rm
Cache.php
2797
0644
edit
dl
rm
CacheProvider.php
8462
0644
edit
dl
rm
ChainCache.php
4847
0644
edit
dl
rm
ClearableCache.php
501
0644
edit
dl
rm
CouchbaseBucketCache.php
4675
0644
edit
dl
rm
CouchbaseCache.php
2320
0644
edit
dl
rm
ExtMongoDBCache.php
5315
0644
edit
dl
rm
FileCache.php
7967
0644
edit
dl
rm
FilesystemCache.php
2061
0644
edit
dl
rm
FlushableCache.php
350
0644
edit
dl
rm
InvalidCacheId.php
740
0644
edit
dl
rm
LegacyMongoDBCache.php
4773
0644
edit
dl
rm
MemcacheCache.php
2120
0644
edit
dl
rm
MemcachedCache.php
3848
0644
edit
dl
rm
MongoDBCache.php
3198
0644
edit
dl
rm
MultiDeleteCache.php
466
0644
edit
dl
rm
MultiGetCache.php
593
0644
edit
dl
rm
MultiOperationCache.php
251
0644
edit
dl
rm
MultiPutCache.php
698
0644
edit
dl
rm
PhpFileCache.php
2675
0644
edit
dl
rm
PredisCache.php
3286
0644
edit
dl
rm
RedisCache.php
4355
0644
edit
dl
rm
SQLite3Cache.php
4635
0644
edit
dl
rm
Version.php
99
0644
edit
dl
rm
VoidCache.php
887
0644
edit
dl
rm
WinCacheCache.php
2294
0644
edit
dl
rm
XcacheCache.php
2210
0644
edit
dl
rm
ZendDataCache.php
1244
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MongoDBCache.php
(3198B)
<?php namespace Doctrine\Common\Cache; use InvalidArgumentException; use MongoCollection; use MongoDB\Collection; use const E_USER_DEPRECATED; use function trigger_error; /** * MongoDB cache provider. */ class MongoDBCache extends CacheProvider { /** * The data field will store the serialized PHP value. */ public const DATA_FIELD = 'd'; /** * The expiration field will store a MongoDate value indicating when the * cache entry should expire. * * With MongoDB 2.2+, entries can be automatically deleted by MongoDB by * indexing this field with the "expireAfterSeconds" option equal to zero. * This will direct MongoDB to regularly query for and delete any entries * whose date is older than the current time. Entries without a date value * in this field will be ignored. * * The cache provider will also check dates on its own, in case expired * entries are fetched before MongoDB's TTLMonitor pass can expire them. * * @see http://docs.mongodb.org/manual/tutorial/expire-data/ */ public const EXPIRATION_FIELD = 'e'; /** @var CacheProvider */ private $provider; /** * This provider will default to the write concern and read preference * options set on the collection 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. * * @see http://www.php.net/manual/en/mongo.readpreferences.php * @see http://www.php.net/manual/en/mongo.writeconcerns.php * * @param MongoCollection|Collection $collection */ public function __construct($collection) { if ($collection instanceof MongoCollection) { @trigger_error('Using a MongoCollection instance for creating a cache adapter is deprecated and will be removed in 2.0', E_USER_DEPRECATED); $this->provider = new LegacyMongoDBCache($collection); } elseif ($collection instanceof Collection) { $this->provider = new ExtMongoDBCache($collection); } else { throw new InvalidArgumentException('Invalid collection given - expected a MongoCollection or MongoDB\Collection instance'); } } /** * {@inheritdoc} */ protected function doFetch($id) { return $this->provider->doFetch($id); } /** * {@inheritdoc} */ protected function doContains($id) { return $this->provider->doContains($id); } /** * {@inheritdoc} */ protected function doSave($id, $data, $lifeTime = 0) { return $this->provider->doSave($id, $data, $lifeTime); } /** * {@inheritdoc} */ protected function doDelete($id) { return $this->provider->doDelete($id); } /** * {@inheritdoc} */ protected function doFlush() { return $this->provider->doFlush(); } /** * {@inheritdoc} */ protected function doGetStats() { return $this->provider->doGetStats(); } }
Save
cmd:
run