Skip to content

Ability to invalidate multiple caches by tags #40

@volodymyr-volynets

Description

@volodymyr-volynets

Hi,

Here's situation:

  1. One codebase connects to multiple databases;
  2. Few cashes can store data from the same table, data is gathered by different sql queries;
  3. Having file based cache allows me to create a folder per database and then reset it by tags, having tags allows me to generate keys like md5 of a sql query.

Is something like this possible?

  1. memcache_set() - add tags parameter type text[] at the end
  2. memcache_flush_tags(tags text[], optional policy smallint) - new function, policy can be ALL or ANY tags.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions