Skip to content

Redis for sessions and global cache

Pavlo Mashliakovskiy requested to merge feat/redisSessionStorage into master
  • App.globalCache now can be stored in Redis if ubConfig.application.redis.useForGlobalCache is true
  • Redis database index now can be specified in ubConfig.application.redis.dbIndex. Default is 0
  • Redis key prefix can be specified in ubConfig.application.redis.keyPrefix. This allows share the same Redis DB between several server groups, in case dbIndex is not usable (due to Redis hi-availability for example). Default is 'ub'
  • _App.globalCacheList can accept optional keyStartsWith argument to limit returned key`s
  • new methods App.memCachePut|Get is added. In-memory cache is always instance-local, while globalCache is either in-memory or Redis

Merge request reports

Loading