Comments (1)
It definitely looks like a concurrency issue. I have the same need of an atomically cached page, maybe like:
func CachePageAtomic(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc { /* ... */ }
from cache.
Related Issues (20)
- Delete cached elements
- Appending cache values
- how do we set the database to use???
- does this support dynamic key for a route?
- how to use the func "Dial" in other package
- SiteCache cannot work as middleware ?
- Fail serving images
- Got "ambiguous import: found github.com/ugorji/go/codec in multiple modules" HOT 2
- Not caching 204
- Cache in InMemoryStore is broken HOT 13
- How to use cache.Cache middleware?
- add badger as persistent store
- Invalidate cached page HOT 4
- How to set custom http header when the cache hit? HOT 2
- Conflict with gzip
- statistics about cached pages / invalidation
- Why make CachePage public? HOT 4
- Proposal to use Souin as an HTTP cache system HOT 1
- v1.1.0 using unmaintained redigo version HOT 2
- how to remove cache ? HOT 1
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 cache.