/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
vendor
/
doctrine
/
cache
/
lib
/
Doctrine
/
Common
/
Cache
/
/home/techb158/ileadtechnology.com/SSM/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
4423
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:
/home/techb158/ileadtechnology.com/SSM/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php
(2384B)
<?php namespace Doctrine\Common\Cache; use const PHP_VERSION_ID; use function apc_cache_info; use function apc_clear_cache; use function apc_delete; use function apc_exists; use function apc_fetch; use function apc_sma_info; use function apc_store; /** * APC cache provider. * * @deprecated since version 1.6, use ApcuCache instead * * @link www.doctrine-project.org */ class ApcCache extends CacheProvider { /** * {@inheritdoc} */ protected function doFetch($id) { return apc_fetch($id); } /** * {@inheritdoc} */ protected function doContains($id) { return apc_exists($id); } /** * {@inheritdoc} */ protected function doSave($id, $data, $lifeTime = 0) { return apc_store($id, $data, $lifeTime); } /** * {@inheritdoc} */ protected function doDelete($id) { // apc_delete returns false if the id does not exist return apc_delete($id) || ! apc_exists($id); } /** * {@inheritdoc} */ protected function doFlush() { return apc_clear_cache() && apc_clear_cache('user'); } /** * {@inheritdoc} */ protected function doFetchMultiple(array $keys) { return apc_fetch($keys) ?: []; } /** * {@inheritdoc} */ protected function doSaveMultiple(array $keysAndValues, $lifetime = 0) { $result = apc_store($keysAndValues, null, $lifetime); return empty($result); } /** * {@inheritdoc} */ protected function doGetStats() { $info = apc_cache_info('', true); $sma = apc_sma_info(); // @TODO - Temporary fix @see https://github.com/krakjoe/apcu/pull/42 if (PHP_VERSION_ID >= 50500) { $info['num_hits'] = $info['num_hits'] ?? $info['nhits']; $info['num_misses'] = $info['num_misses'] ?? $info['nmisses']; $info['start_time'] = $info['start_time'] ?? $info['stime']; } return [ Cache::STATS_HITS => $info['num_hits'], Cache::STATS_MISSES => $info['num_misses'], Cache::STATS_UPTIME => $info['start_time'], Cache::STATS_MEMORY_USAGE => $info['mem_size'], Cache::STATS_MEMORY_AVAILABLE => $sma['avail_mem'], ]; } }
Save
cmd:
run