Realm
gno.land/r/moul/x/daily/lru/v1
Rendered output
LRU Cache
A fixed-capacity least-recently-used cache.
Stats
- Capacity: 8
- Size: 0
- Hits: 0
- Misses: 0
- Hit rate: n/a
Entries (MRU → LRU)
empty
Call functions (state-changing)
signs a tx via AdenaGet(key string)
Put(key string, value string)
Reset()
All exported functions (4)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| Put | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}, {"Name": "value", "Type": "string", "Value": ""}] | — |
| Get | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "bool", "Value": ""}] |
| Reset | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}] | — |
| Render | [{"Name": "path", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
Files
Storage
{
"raw": "storage: 7265, deposit: 726500"
}