Open Closed

Search keys on cache starting with a prefix. #7984


User avatar
0
castellazzi created
  • ABP Framework version: v8.2.0
  • UI Type: Blazor Server
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:Using distributed cache (redis) it's possible scan cache search all keys starting with a prefix, for example search 'black*', and will get 'black1,black2' an so on ? Many thanks.

2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team Software Architect

    Hi, ABP's distributed cache abstraction (IDistributedCache) extends ASP.NET Core's distributed cache API. Both of these APIs doesn't provide any functionality to search cache items with a prefix. You can directly use Redis client library to use full API of Redis (it is already installed indirectly in your application, just check their document).

  • User Avatar
    0
    castellazzi created

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 15, 2025, 10:28