Comments (3)
Also getting a lot of module errors since this repo was moved. Ex:
go: finding module for package github.com/ReneKroon/ttlcache/v2
go: found github.com/ReneKroon/ttlcache/v2 in github.com/ReneKroon/ttlcache/v2 v2.11.1
go: wsq-api/pkg/database/billingdb imports
github.com/ReneKroon/ttlcache/v2: github.com/ReneKroon/ttlcache/[email protected]: parsing go.mod:
module declares its path as: github.com/jellydator/ttlcache/v2
but was required as: github.com/ReneKroon/ttlcache/v2
Update: Some of my source files still included the module using the old github url. Maybe add to the readme that one should update this?
from ttlcache.
- The v3/latest README file has a reference/docs badge that redirects to the godoc page.
- You can use
WithDisableTouchOnHit()
(doc). - Unless you handle expired item deletion in some other way, you need to start a goroutine for this (doc:
It blocks until Stop is called
). If the item is not found, a nil value is returned
(doc).
from ttlcache.
- Got it
- The docs you link to just show that a function with that name exists. It does not tell me how to use it. Maybe we need an example?
- Why does this need to be different (more complex) than how it was with V2?
- Great. This detail is a little hidden. And I'm not a fan of returning a
nil
. What if the value I stored in the cache was anil
?err
like with V2 is better.
from ttlcache.
Related Issues (20)
- go1.18 and generics HOT 5
- Export / Import functionality HOT 2
- Upgrade to v3 HOT 9
- ExpireCallback calls on Remove() item HOT 1
- Add Range/ForEach method HOT 2
- Add a method that activates transaction mode
- Add Version method to item type HOT 1
- Returning loader errors HOT 11
- Limit on no. of keys stored in ttlcache? HOT 12
- Enhancement Req - Add option to the cache to prevent updates when using Set() HOT 4
- RFC - Expiry based on passed in function (option during cache creation) HOT 2
- Provides similar implementation as sync.Map (LoadOrStore, LoadAndDelete)
- Auxiliary data with the cache so that LoaderFunc can be versatile HOT 3
- Get, Set, and Loader should include context.Context in function signature HOT 5
- Memory leak problem caused by deleting items from golang map HOT 3
- SuppressedLoader should allow setting `group` HOT 9
- OnEviction doesn't work as expected HOT 1
- Add MGet or Multiple Get to improve read performance HOT 2
- Cache Sharding support to increase performance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttlcache.