dinesh94 / simple-spring-memcached

Automatically exported from code.google.com/p/simple-spring-memcached
MIT License
0 stars 0 forks source link

Clear multiple keys #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am trying to use this in one of my project  and I am trying to create key 
tablename_key  so that I will have different keys for different tables.

I want to clear cache for all keys with a prefix of tablename.

I know that memmcached doesn't know about the table names/prefixes.

I have read in the forums that there is a concept of names spaces.

Example cache.put(table1_key1, obj);
cache.put(table1_key2, obj2);
cache.put(table1_key3,obj3);

i want to  do cache.clear("table1");

Thanks
Harshi

Original issue reported on code.google.com by chava...@gmail.com on 1 May 2013 at 3:12

GoogleCodeExporter commented 9 years ago
Hi,

Have you read about cache zones in SSM? You can use dedicated memcached 
instance for each table.

Best regards, 
Ragnor

Original comment by ragno...@gmail.com on 2 May 2013 at 10:59

GoogleCodeExporter commented 9 years ago

Original comment by ragno...@gmail.com on 13 Jun 2013 at 5:52