Add posibility to Custom prefix keys in AbpRedisCache
See original GitHub issueHi.
We would like to had possibility to configure prefix on appsettings level for AbpRedisCache.
Issue which we had right now is that we had 3 different environment Production, Staging and Test and in our case it is unecessary and additional cost to setup 3 redis, but when it will be possibile to make custom prefixes inside AbpRedisCache, then we could reuse one instance for all environment.
protected virtual RedisKey GetLocalizedRedisKey(string key) { return "n:" + Name + ",c:" + key; }
Most anoying issue with approach which is right now is, if we introduce new setting in our staging then it could occur 500 on GetAll method on production, cause on production, setting is not yet introduce. This is very dangerous and this small feature could give better usability of redis in aspboilerplate.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@CrazyBaran you should consider using different database id in the same Redis instance (which can be configured in the environment specific app settings
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.