Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
sprockets /
cache /
[ HOME SHELL ]
Name
Size
Permission
Action
file_store.rb
4.88
KB
-rw-r--r--
memory_store.rb
1.61
KB
-rw-r--r--
null_store.rb
1.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : memory_store.rb
module Sprockets class Cache # Public: Basic in memory LRU cache. # # Assign the instance to the Environment#cache. # # environment.cache = Sprockets::Cache::MemoryStore.new(1000) # # See Also # # ActiveSupport::Cache::MemoryStore # class MemoryStore # Internal: Default key limit for store. DEFAULT_MAX_SIZE = 1000 # Public: Initialize the cache store. # # max_size - A Integer of the maximum number of keys the store will hold. # (default: 1000). def initialize(max_size = DEFAULT_MAX_SIZE) @max_size = max_size @cache = {} end # Public: Retrieve value from cache. # # This API should not be used directly, but via the Cache wrapper API. # # key - String cache key. # # Returns Object or nil or the value is not set. def get(key) exists = true value = @cache.delete(key) { exists = false } if exists @cache[key] = value else nil end end # Public: Set a key and value in the cache. # # This API should not be used directly, but via the Cache wrapper API. # # key - String cache key. # value - Object value. # # Returns Object value. def set(key, value) @cache.delete(key) @cache[key] = value @cache.shift if @cache.size > @max_size value end # Public: Pretty inspect # # Returns String. def inspect "#<#{self.class} size=#{@cache.size}/#{@max_size}>" end end end end
Close