Giter Club home page Giter Club logo

Comments (18)

khoaofgod avatar khoaofgod commented on July 28, 2024

@ARTPROITCo
What do you mean about "tags" ? Can you give me some details & examples. I will work on that right away.

from phpfastcache.

 avatar commented on July 28, 2024

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.

khoaofgod avatar khoaofgod commented on July 28, 2024

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.

khoaofgod avatar khoaofgod commented on July 28, 2024

Working on this.
New release on March 02

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

This move to April 12 since I have an urgent project have to finish.

from phpfastcache.

maxisoft-git avatar maxisoft-git commented on July 28, 2024

This functionality will be added?

from phpfastcache.

pefstra avatar pefstra commented on July 28, 2024

Great work! Any news about tags?

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

Next week, I'm working hard on this >_< a little bit busy with other projects. Will push this one next week.

from phpfastcache.

pefstra avatar pefstra commented on July 28, 2024

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.

maxisoft-git avatar maxisoft-git commented on July 28, 2024

Most likely this will not be functional

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

I work on this one, we will have tags soon.

from phpfastcache.

nikmauro avatar nikmauro commented on July 28, 2024

Any progress or any help about this?

from phpfastcache.

nikmauro avatar nikmauro commented on July 28, 2024

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.

khoaofgod avatar khoaofgod commented on July 28, 2024

it will be add next week, on this version 4 together with mongodb

from phpfastcache.

nikmauro avatar nikmauro commented on July 28, 2024

@khoaofgod This is awesome news!

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

@nikmauro Tags is added
https://github.com/PHPSocialNetwork/phpfastcache/releases/tag/4.1.0

Look at Examples/Tags.YourCaching.php

from phpfastcache.

maxisoft-git avatar maxisoft-git commented on July 28, 2024

stunned, it happened. Wow. You are best

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

Example of tagging function here:
https://github.com/PHPSocialNetwork/phpfastcache/blob/final/examples/Tags.YourCaching.php

from phpfastcache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.