Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifying cache usage #10

Open
gilm0079 opened this issue May 16, 2016 · 0 comments
Open

Verifying cache usage #10

gilm0079 opened this issue May 16, 2016 · 0 comments

Comments

@gilm0079
Copy link

I'm pretty new to Redis. I'm working to add it to our Identity Server project. I have a Redis server up and running. The cache is attached in Identity Server as far as I can tell. I'd like to perform some sort of GET against the Redis cache to see that the identity server objects are being written there. I'm assuming I need to know the key though in order to retrieve the objects from Redis. Do you have any ideas on this?

I added an API controller I can execute against in the Identity server project so I can query into Redis. Inside the controller action I have it using the existing connectionMultiplexer. I tried a wildcard search, but either it is not working or there are no entries in Redis. Thoughts?

ICacheManager cacheClient = new RedisCacheManager(cacheConnection);
List<string> allKeys = cacheClient.SearchKeys("*").ToList();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant