asp.net - Get cache elements with key -



asp.net - Get cache elements with key -

in asp.net, have

idictionaryenumerator enumerator = cache.getenumerator();

to elements of cache objecs.

do have method cache objects start particular string. like

idictionaryenumerator enumerator = cache.getenumerator("%key%");

instead of

while (enumerator.movenext()) { if (enumerator.key.tostring().tolower().startswith("key")) { //code } }

you can seek this:

int = 0; while (i < cache.keys.length){ if (cache.keys(i).contains(keyname){ //code } else{ ++; } }

asp.net asp.net-caching asp.net-cache

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -