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 -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -