Comments (1)
I don't think the flush command in memcache supports tags, so you'd have to delete all individual keys separately which is pretty clumsy. You could, however, just create your own wrapper functions around pgmemcache that use your custom tags in all operations and just update the tag when you want to stop using the values with the old tag.
One way to do it would be to have a table that contains your tag and SQL language functions that select that tag and prepend or append it to the key you're using. Another way would be to just embed that tag directly in your function definition.
One application I implemented had versioned database tables and functions and always stored values in the database in JSON format with the current software version included in the value. That way the keys remained the same across software versions (and different software versions running simultaneously wouldn't see different data), but if the software version on the frontend didn't match the version in the cached value the cache was ignored.
from pgmemcache.
Related Issues (20)
- erroneous memory allocation in memcache_get_multi HOT 3
- pgmemcache stops working HOT 2
- 2.1.1 can't be built without git
- Release 2.1.1 Makefile HOT 1
- Syntax error HOT 1
- memcached_get() memory leak HOT 3
- debian remove yada HOT 4
- Version 2.1.1 and 2.1.2 don't work for PostgreSQL 9.2 HOT 4
- doesn't build with latest libmemcached HOT 1
- Inconsistent text handling
- Installation Issues HOT 2
- Installation Issue HOT 4
- Delete/Remove Dead server HOT 2
- `memcache_server_delete()` is missing HOT 1
- memcache_stats() crash the system HOT 5
- memcache_get_multi throws error if all key doesn't exist
- nutcracker instead of memcache server HOT 1
- Cannot set pgmemcache.default_servers at database or role level
- Table partition on PostgreSQL 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 pgmemcache.