-
Notifications
You must be signed in to change notification settings - Fork 1
Add cache module #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add cache module #62
Conversation
- Removed instances of .z.M and replaced `
di/cache/cache.q
Outdated
| if[0>requiredsize:(maxsize*MB) - size+sum exec size from cache; evict[neg requiredsize;now]]; | ||
| / Insert to the cache table | ||
| .z.M.cache upsert (id;now;now;size); | ||
| `cache upsert (id;now;now;size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this work as intended? i.e. it should not create/update a table cache in the root namespace, but within the module's private namespace
| perf:([]time:`timestamp$();id:`long$();status:`symbol$()); | ||
|
|
||
| id:0j; | ||
| getid:{:id+::1}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this doing? its not used anywhere else in this script.. i guess this begs the question is the id incrementation working as expected?
Initial work by @jcliffDI on cache module