[英]What do these spring session keys stand for in Redis?
I'm integrating Spring Session, Spring Security with SpringBoot by following this tutorial . 我按照本教程将Spring Session,Spring Security与SpringBoot集成在一起。
The solution works well for me. 该解决方案适合我。 It saves sessions to Redis as expected. 它按预期将会话保存到Redis。
I'm curious what do these keys/values(such as expirations, index, sessions:expires) stand for. 我很好奇这些键/值(例如expirations,index,sessions:expires)代表什么。 Anyone knows about it? 谁知道呢?
The RedisOperationsSessionRepository
Storage Details part of Spring Session's reference manual covers the storage related implementation details in depth. Spring Session的参考手册中的RedisOperationsSessionRepository
存储详细信息部分涵盖了与存储相关的实现细节。 You can find the same information in javadoc of RedisOperationsSessionRepository
class . 您可以在RedisOperationsSessionRepository
类的javadoc中找到相同的信息。
In short, expirations/expires is related to internal handling of session expiry, and index stores indexes which can be used to retrieve sessions using FindByIndexNameSessionRepository
. 简而言之,expirations / expires与会话到期的内部处理有关,索引存储可用于使用FindByIndexNameSessionRepository
检索会话的FindByIndexNameSessionRepository
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.