yeah it´s just a idea, cache values not get will get from session db for example the point here is a scenario with cache server with loaded (network or low memory) it sound nice to tweak some code with this 'check' feature. i don´t know if will have a performace boost, just testing...
2011/3/18 Les Mikesell <lesmikes...@gmail.com>: > On 3/18/2011 5:28 PM, Roberto Spadim wrote: >> >> hummm i think it´s a cache feature... >> for example, if a key of cache is >> key_1 , key_1_1, hey_1_2 , key_1_3, key_1_xxxx >> if we check key_1 and it return not exists, we don´t need to check >> key_1_1,2,3,4 >> it´s a feature, some cache problems could get improvement with it. >> i think it´s very good =) >> think about http sessions >> just check if a variable exists in cache (it can be very big) >> if not exists get from session database (invalidade all cache values >> (delete)) > > What if the reason it doesn't exist is that it just got evicted - but some > or all of your related keys might still be there? Or maybe the server > holding that key just went down. > >> if exists get all cache values from cache > > Likewise they may be evicted/expired separately. > > -- > Les Mikesell > lesmikes...@gmail.com > > -- Roberto Spadim Spadim Technology / SPAEmpresarial