0
dev@veek.vn created
Hello,
I have saved data to Redis using IDistributedCache, but the key in Redis is excessively long. How can I configure the prefix of the key?
Thanks, Veek
ABP Framework version: v.7.3.2 UI Type: Angular Database System: MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes Exception message and full stack trace: Steps to reproduce the issue:
4 Answer(s)
-
0
hi
try to use
CacheName
on your cache item class.using Volo.Abp.Caching; namespace MyProject { [CacheName("Books")] public class BookCacheItem { public string Name { get; set; } public float Price { get; set; } } }
-
0
got that for class.
not sure for case string or list string. ex: private readonly IDistributedCache<Queue<string>, string> _cache;
-
0
hi
You can create a class to wrap
Queue
. : ) -
0
ok :))