���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
unstorage
/
drivers
/
Viewing: lru-cache.mjs
import { defineDriver } from "./utils/index.mjs"; import { LRUCache } from "lru-cache"; const DRIVER_NAME = "lru-cache"; export default defineDriver((opts = {}) => { const cache = new LRUCache({ max: 1e3, sizeCalculation: opts.maxSize || opts.maxEntrySize ? (value, key) => { return key.length + byteLength(value); } : void 0, ...opts }); return { name: DRIVER_NAME, options: opts, hasItem(key) { return cache.has(key); }, getItem(key) { return cache.get(key) ?? null; }, getItemRaw(key) { return cache.get(key) ?? null; }, setItem(key, value) { cache.set(key, value); }, setItemRaw(key, value) { cache.set(key, value); }, removeItem(key) { cache.delete(key); }, getKeys() { return Array.from(cache.keys()); }, clear() { cache.clear(); }, dispose() { cache.clear(); } }; }); function byteLength(value) { if (typeof Buffer !== void 0) { try { return Buffer.byteLength(value); } catch { } } try { return typeof value === "string" ? value.length : JSON.stringify(value).length; } catch { } return 0; }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa