Comments (18)
@ARTPROITCo
What do you mean about "tags" ? Can you give me some details & examples. I will work on that right away.
from phpfastcache.
How it works can be found in Zend
Example of logic:
$user_id = 123;
// user page - transactions
$transactions_html = "....";
$cache->set(
'pages-transactions-user_'.$user_id,
$transactions_html,
600,
array( // array of tags
'pages',
'transactions',
'user_'.$user_id,
)
);
// user page - profile
$profile_html = "....";
$cache->set(
'pages-profiles-user_'.$user_id,
$profile_html,
600,
array( // array of tags
'pages',
'profiles',
'user_'.$user_id,
)
);
// deleting cache of transaction page for user
// where cache have tag1 && tag2 (or may tag2 || tag2 ...)
$cache->deleteByTags(array('pages', 'transactions', 'user_'.$user_id));
// deleting cache of all pages for user
$cache->deleteByTags(array('pages', 'user_'.$user_id));
// deleting cache of all transaction pages for all users
$cache->deleteByTags(array('pages', 'transactions'));
// deleting cache of all pages for all users
$cache->deleteByTags(array('pages'));
from phpfastcache.
oh. OK.
U meant tags / group / sets of "keywords" ..
Got it, I will add it to next release 2.5 on March 02
from phpfastcache.
Working on this.
New release on March 02
from phpfastcache.
This move to April 12 since I have an urgent project have to finish.
from phpfastcache.
This functionality will be added?
from phpfastcache.
Great work! Any news about tags?
from phpfastcache.
Next week, I'm working hard on this >_< a little bit busy with other projects. Will push this one next week.
from phpfastcache.
I know you're busy and sorry for my insistence. Are you gonna launch soon this new version with tags or it would be better to look for something else similar? I am in the middle of a project and I am waiting for this...
from phpfastcache.
Most likely this will not be functional
from phpfastcache.
I work on this one, we will have tags soon.
from phpfastcache.
Any progress or any help about this?
from phpfastcache.
here some libraries with tags implementations [https://github.com/cpojer/php-cache] [http://www.gabrielemittica.com/cont/guide/brennocache-a-smart-cache-engine-for-your-php-applications/19/1.html]
from phpfastcache.
it will be add next week, on this version 4 together with mongodb
from phpfastcache.
@khoaofgod This is awesome news!
from phpfastcache.
@nikmauro Tags is added
https://github.com/PHPSocialNetwork/phpfastcache/releases/tag/4.1.0
Look at Examples/Tags.YourCaching.php
from phpfastcache.
stunned, it happened. Wow. You are best
from phpfastcache.
Example of tagging function here:
https://github.com/PHPSocialNetwork/phpfastcache/blob/final/examples/Tags.YourCaching.php
from phpfastcache.
Related Issues (20)
- Website broken - Unable to browse any documentation page HOT 6
- PDO Cache is case insensitive? HOT 4
- Proper way to preload cache items with crontab HOT 14
- Memcached driver compress_data cache miss HOT 4
- Config('path') - Can't declare path from the parent directory of index file directory. HOT 6
- Installation fails: 'Fatal error: Uncaught Error: Class "CacheManager" not found ...' HOT 3
- getItemsByTag() - empty after one item has expired HOT 10
- Can´t retrieve phpfastcache 9.1.3 thru composer HOT 7
- Saving an item that is already in the pool after its expiration time fails HOT 13
- 2 million data cache? HOT 5
- Storing and retrieving mysql result arrays using Psr16Adapter HOT 4
- Deleting cache by tag without loading all its cache HOT 3
- cache not clearing manually in html HOT 2
- Disable 'securityKey' and adapter directory. HOT 9
- Cache clear() not working with Redis, getItem() still returns data HOT 2
- How to use memcache on v8 ? HOT 3
- Support custom native RedisCluster client HOT 9
- TypeError Phpfastcache\Drivers\Files\Driver::driverRead(): Return value must be of type ?array, bool returned HOT 13
- Memory size exhausted by deleting by Tags HOT 10
- Save - Inside workerman event threads Save() throws fopen() error HOT 4
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 phpfastcache.