/
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/XcacheCache.php
(2210B)
<?php namespace Doctrine\Common\Cache; use BadMethodCallException; use const XC_TYPE_VAR; use function ini_get; use function serialize; use function unserialize; use function xcache_clear_cache; use function xcache_get; use function xcache_info; use function xcache_isset; use function xcache_set; use function xcache_unset; /** * Xcache cache driver. * * @deprecated * * @link www.doctrine-project.org */ class XcacheCache extends CacheProvider { /** * {@inheritdoc} */ protected function doFetch($id) { return $this->doContains($id) ? unserialize(xcache_get($id)) : false; } /** * {@inheritdoc} */ protected function doContains($id) { return xcache_isset($id); } /** * {@inheritdoc} */ protected function doSave($id, $data, $lifeTime = 0) { return xcache_set($id, serialize($data), (int) $lifeTime); } /** * {@inheritdoc} */ protected function doDelete($id) { return xcache_unset($id); } /** * {@inheritdoc} */ protected function doFlush() { $this->checkAuthorization(); xcache_clear_cache(XC_TYPE_VAR); return true; } /** * Checks that xcache.admin.enable_auth is Off. * * @return void * * @throws BadMethodCallException When xcache.admin.enable_auth is On. */ protected function checkAuthorization() { if (ini_get('xcache.admin.enable_auth')) { throw new BadMethodCallException( 'To use all features of \Doctrine\Common\Cache\XcacheCache, ' . 'you must set "xcache.admin.enable_auth" to "Off" in your php.ini.' ); } } /** * {@inheritdoc} */ protected function doGetStats() { $this->checkAuthorization(); $info = xcache_info(XC_TYPE_VAR, 0); return [ Cache::STATS_HITS => $info['hits'], Cache::STATS_MISSES => $info['misses'], Cache::STATS_UPTIME => null, Cache::STATS_MEMORY_USAGE => $info['size'], Cache::STATS_MEMORY_AVAILABLE => $info['avail'], ]; } }
Save
cmd:
run