File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Cache
Upload
[..]
ApcStore.php (3 KB)
Edit
Rename
Del
ApcWrapper.php (1.4 KB)
Edit
Rename
Del
CacheLock.php (1.77 KB)
Edit
Rename
Del
Console/
Rename
Del
Events/
Rename
Del
FailoverStore.php (6.69 KB)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
Limiters/
Rename
Del
MemcachedConnector.php (2.33 KB)
Edit
Rename
Del
MemcachedLock.php (1.4 KB)
Edit
Rename
Del
MemcachedStore.php (6.42 KB)
Edit
Rename
Del
MemoizedStore.php (6.64 KB)
Edit
Rename
Del
NoLock.php (870 B)
Edit
Rename
Del
PhpRedisLock.php (809 B)
Edit
Rename
Del
RateLimiting/
Rename
Del
RedisLock.php (1.72 KB)
Edit
Rename
Del
RedisStore.php (14.73 KB)
Edit
Rename
Del
RedisTagSet.php (3.82 KB)
Edit
Rename
Del
RedisTaggedCache.php (5.79 KB)
Edit
Rename
Del
TagSet.php (2.44 KB)
Edit
Rename
Del
TaggableStore.php (415 B)
Edit
Rename
Del
TaggedCache.php (2.82 KB)
Edit
Rename
Del
composer.json (1.5 KB)
Edit
Rename
Del
Edit: ApcStore.php
<?php namespace Illuminate\Cache; class ApcStore extends TaggableStore { use RetrievesMultipleKeys; /** * The APC wrapper instance. * * @var \Illuminate\Cache\ApcWrapper */ protected $apc; /** * A string that should be prepended to keys. * * @var string */ protected $prefix; /** * Create a new APC store. * * @param \Illuminate\Cache\ApcWrapper $apc * @param string $prefix */ public function __construct(ApcWrapper $apc, $prefix = '') { $this->apc = $apc; $this->prefix = $prefix; } /** * Retrieve an item from the cache by key. * * @param string $key * @return mixed */ public function get($key) { return $this->apc->get($this->prefix.$key); } /** * Store an item in the cache for a given number of seconds. * * @param string $key * @param mixed $value * @param int $seconds * @return bool */ public function put($key, $value, $seconds) { return $this->apc->put($this->prefix.$key, $value, $seconds); } /** * Increment the value of an item in the cache. * * @param string $key * @param int $value * @return int|false */ public function increment($key, $value = 1) { return $this->apc->increment($this->prefix.$key, $value); } /** * Decrement the value of an item in the cache. * * @param string $key * @param int $value * @return int|false */ public function decrement($key, $value = 1) { return $this->apc->decrement($this->prefix.$key, $value); } /** * Store an item in the cache indefinitely. * * @param string $key * @param mixed $value * @return bool */ public function forever($key, $value) { return $this->put($key, $value, 0); } /** * Adjust the expiration time of a cached item. * * @param string $key * @param int $seconds * @return bool */ public function touch($key, $seconds) { $value = $this->apc->get($key = $this->getPrefix().$key); if (is_null($value)) { return false; } return $this->apc->put($key, $value, $seconds); } /** * Remove an item from the cache. * * @param string $key * @return bool */ public function forget($key) { return $this->apc->delete($this->prefix.$key); } /** * Remove all items from the cache. * * @return bool */ public function flush() { return $this->apc->flush(); } /** * Get the cache key prefix. * * @return string */ public function getPrefix() { return $this->prefix; } /** * Set the cache key prefix. * * @param string $prefix * @return void */ public function setPrefix($prefix) { $this->prefix = $prefix; } }
Simpan