X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/framework/src/Illuminate/Cache
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cache
/
📁
..
📄
ApcStore.php
(2.46 KB)
📄
ApcWrapper.php
(1.93 KB)
📄
ArrayLock.php
(2.1 KB)
📄
ArrayStore.php
(4.67 KB)
📄
CacheLock.php
(1.79 KB)
📄
CacheManager.php
(10.64 KB)
📄
CacheServiceProvider.php
(1.32 KB)
📁
Console
📄
DatabaseLock.php
(3.76 KB)
📄
DatabaseStore.php
(10.78 KB)
📄
DynamoDbLock.php
(1.54 KB)
📄
DynamoDbStore.php
(14.6 KB)
📁
Events
📄
FileLock.php
(271 B)
📄
FileStore.php
(9.67 KB)
📄
HasCacheLock.php
(681 B)
📄
LICENSE.md
(1.05 KB)
📄
Lock.php
(3.5 KB)
📄
LuaScripts.php
(462 B)
📄
MemcachedConnector.php
(2.33 KB)
📄
MemcachedLock.php
(1.42 KB)
📄
MemcachedStore.php
(6.18 KB)
📄
NoLock.php
(692 B)
📄
NullStore.php
(2.34 KB)
📄
PhpRedisLock.php
(829 B)
📄
RateLimiter.php
(5.29 KB)
📁
RateLimiting
📄
RedisLock.php
(1.73 KB)
📄
RedisStore.php
(10.14 KB)
📄
RedisTagSet.php
(3.13 KB)
📄
RedisTaggedCache.php
(3.03 KB)
📄
Repository.php
(16.69 KB)
📄
RetrievesMultipleKeys.php
(1.13 KB)
📄
TagSet.php
(2.46 KB)
📄
TaggableStore.php
(421 B)
📄
TaggedCache.php
(2.5 KB)
📄
composer.json
(1.49 KB)
Editing: TagSet.php
<?php namespace Illuminate\Cache; use Illuminate\Contracts\Cache\Store; class TagSet { /** * The cache store implementation. * * @var \Illuminate\Contracts\Cache\Store */ protected $store; /** * The tag names. * * @var array */ protected $names = []; /** * Create a new TagSet instance. * * @param \Illuminate\Contracts\Cache\Store $store * @param array $names * @return void */ public function __construct(Store $store, array $names = []) { $this->store = $store; $this->names = $names; } /** * Reset all tags in the set. * * @return void */ public function reset() { array_walk($this->names, [$this, 'resetTag']); } /** * Reset the tag and return the new tag identifier. * * @param string $name * @return string */ public function resetTag($name) { $this->store->forever($this->tagKey($name), $id = str_replace('.', '', uniqid('', true))); return $id; } /** * Flush all the tags in the set. * * @return void */ public function flush() { array_walk($this->names, [$this, 'flushTag']); } /** * Flush the tag from the cache. * * @param string $name */ public function flushTag($name) { $this->store->forget($this->tagKey($name)); } /** * Get a unique namespace that changes when any of the tags are flushed. * * @return string */ public function getNamespace() { return implode('|', $this->tagIds()); } /** * Get an array of tag identifiers for all of the tags in the set. * * @return array */ protected function tagIds() { return array_map([$this, 'tagId'], $this->names); } /** * Get the unique tag identifier for a given tag. * * @param string $name * @return string */ public function tagId($name) { return $this->store->get($this->tagKey($name)) ?: $this->resetTag($name); } /** * Get the tag identifier key for a given tag. * * @param string $name * @return string */ public function tagKey($name) { return 'tag:'.$name.':key'; } /** * Get all of the tag names in the set. * * @return array */ public function getNames() { return $this->names; } }
Upload File
Create Folder