servicestack - Service.Redis Trimming a list -


following tutorials using servicestack v3 , stuck @ when trying trim list in v4.

what equivalent in v4? trying google examples no luck.

you can use trimlist, e.g:

redis.trimlist(listid, keepstartingfrom, keependingat); 

or can use trim() off ilist, e.g:

redis.lists[listid].trim(keepstartingfrom, keependingat); 

both trimlist() , iredislist.trim() have redis typed client api versions:

redis.as<poco>().trimlist(listid, keepstartingfrom, keependingat); redis.as<poco>().lists[listid].trim(keepstartingfrom, keependingat); 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -