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
Post a Comment