create alias for LimitedCacheValue

This commit is contained in:
Pierce 2023-09-05 19:21:08 -04:00
parent 6d9cb42144
commit 3afceb7ffc
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47

View File

@ -1,6 +1,8 @@
---@alias LimitedCacheValue {key: string, value: any, created: number}
---@class LimitedCache
---@field private data table<string, {key: string, value: any, created: number}>
---@field private queue table<number, {key: string, value: any, created: number}>
---@field private data table<string, LimitedCacheValue>
---@field private queue table<number, LimitedCacheValue>
---@field private limit number
---@field private ttlSeconds number
---@field private first number