HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/coauthor/node_modules/lib0/cache.d.ts
/**
 * @template K, V
 */
export class Cache<K, V> {
    /**
     * @param {number} timeout
     */
    constructor(timeout: number);
    timeout: number;
    /**
     * @type list.List<Entry<K, V>>
     */
    _q: list.List<Entry<K, V>>;
    /**
     * @type {Map<K, Entry<K, V>>}
     */
    _map: Map<K, Entry<K, V>>;
}
export function removeStale<K, V>(cache: Cache<K, V>): number;
export function set<K, V>(cache: Cache<K, V>, key: K, value: V): void;
export function get<K, V>(cache: Cache<K, V>, key: K): V | undefined;
export function refreshTimeout<K, V>(cache: Cache<K, V>, key: K): void;
export function getAsync<K, V>(cache: Cache<K, V>, key: K): V | Promise<V> | undefined;
export function remove<K, V>(cache: Cache<K, V>, key: K): NonNullable<V> | undefined;
export function setIfUndefined<K, V>(cache: Cache<K, V>, key: K, init: () => Promise<V>, removeNull?: boolean): V | Promise<V>;
export function create(timeout: number): Cache<any, any>;
import * as list from './list.js';
/**
 * @template K, V
 *
 * @implements {list.ListNode}
 */
declare class Entry<K, V> implements list.ListNode {
    /**
     * @param {K} key
     * @param {V | Promise<V>} val
     */
    constructor(key: K, val: V | Promise<V>);
    /**
     * @type {this | null}
     */
    prev: Entry<K, V> | null;
    /**
     * @type {this | null}
     */
    next: Entry<K, V> | null;
    created: number;
    val: V | Promise<V>;
    key: K;
}
export {};
//# sourceMappingURL=cache.d.ts.map