mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-12-15 10:11:05 +00:00
larry babby and threejs for glsl
This commit is contained in:
36
webGl/my-threejs-test/node_modules/weak-lru-cache/index.d.ts
generated
vendored
Normal file
36
webGl/my-threejs-test/node_modules/weak-lru-cache/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
interface LRFUExpirerOptions {
|
||||
lruSize?: number;
|
||||
cleanupInterval?: number;
|
||||
}
|
||||
|
||||
export class LRFUExpirer {
|
||||
constructor(options?: LRFUExpirerOptions);
|
||||
}
|
||||
|
||||
interface WeakLRUCacheOptions {
|
||||
cacheSize?: number;
|
||||
expirer?: LRFUExpirer | false;
|
||||
deferRegister?: boolean;
|
||||
}
|
||||
|
||||
export class CacheEntry<V> {
|
||||
value?: V
|
||||
deref?(): V
|
||||
}
|
||||
|
||||
export class WeakLRUCache<K, V> extends Map<K, CacheEntry<V>> {
|
||||
constructor(options?: WeakLRUCacheOptions);
|
||||
|
||||
/**
|
||||
* Get a value from the cache, if it is still in memory. If the value is no longer cached, will return undefined.
|
||||
* @param key The key to use to retrieve the value
|
||||
*/
|
||||
getValue(key: K): V | undefined;
|
||||
/**
|
||||
* Put a key-value into the cache
|
||||
* @param key The key to use to insert the entry
|
||||
* @param value The value to insert into the cache
|
||||
* @param expirationPriority A priority for expiration, a higher value will expire sooner
|
||||
*/
|
||||
setValue(key: K, value: V, expirationPriority?: number): void;
|
||||
}
|
||||
Reference in New Issue
Block a user