logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.71k stars 440 forks source link

feature request: Add `logto` key prefix for external cache such as Redis #4547

Open darcyYe opened 1 year ago

darcyYe commented 1 year ago

What problem did you meet?

In Logto, there are many frequently called API requests. To reduce the number of API requests, we can cache certain request results using cache. This allows us to retrieve the data directly from the cache the next time we make the same request. The best practice is to use a dedicated cache instance for Logto. However, some Logto OSS users may use a single cache instance shared by multiple services. While this can be cost-effective, it requires adding prefixes to keys for each service to prevent critical conflicts. To avoid such conflicts and maintain clarity, we've decided to prefix cache keys related to Logto with 'logto'.

Describe what you'd like Logto to have

All key-value pairs created by Logto instance should have prefix logto in keys.

ShatilKhan commented 1 year ago

Please assign me this issue & provide any additional resources if possible

charIeszhao commented 1 year ago

Hi @ShatilKhan, thanks for your interest, and actually you don't need to wait for the ticket assignment before you start working on it. Now it's assigned to you and please let me know if you still want to work on it, even if the Hacktoberfest event is over. Let us know if you hit any blocker and we'll be willing to assign you.