Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chokcoco/iCSS
/ CacheItem
Interface
CacheItem
website/app/lib/cache.ts:1–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
interface
CacheItem<T> {
2
data: T;
3
timestamp: number;
4
ttl: number;
// Time to live in milliseconds
5
}
6
7
class
Cache {
8
private static instance: Cache;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected