Skip to content

Commit 319f0a9

Browse files
authored
Fix example in RedisIndexedSessionRepository and Storage Details section
* Fix example in JavaDocs of RedisIndexedSessionRepository * Fix example in Storage Details section of documentation
1 parent 95de199 commit 319f0a9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* details.
8989
*
9090
* <pre>
91-
* HMSET spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe creationTime 1404360000000 maxInactiveInterval 1800 lastAccessedTime 1404360000000 sessionAttr:attrName someAttrValue sessionAttr2:attrName someAttrValue2
91+
* HMSET spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe creationTime 1404360000000 maxInactiveInterval 1800 lastAccessedTime 1404360000000 sessionAttr:attrName someAttrValue sessionAttr:attrName2 someAttrValue2
9292
* EXPIRE spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe 2100
9393
* APPEND spring:session:sessions:expires:33fdd1b6-b496-4b33-9f7d-df96679d32fe ""
9494
* EXPIRE spring:session:sessions:expires:33fdd1b6-b496-4b33-9f7d-df96679d32fe 1800
@@ -131,8 +131,8 @@
131131
* The {@link RedisIndexedSessionRepository.RedisSession} keeps track of the properties
132132
* that have changed and only updates those. This means if an attribute is written once
133133
* and read many times we only need to write that attribute once. For example, assume the
134-
* session attribute "sessionAttr2" from earlier was updated. The following would be
135-
* executed upon saving:
134+
* session attribute "attrName2" from earlier was updated. The following would be executed
135+
* upon saving:
136136
* </p>
137137
*
138138
* <pre>

spring-session-docs/src/docs/asciidoc/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ HMSET spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe creationTime
791791
maxInactiveInterval 1800 \
792792
lastAccessedTime 1404360000000 \
793793
sessionAttr:attrName someAttrValue \
794-
sessionAttr2:attrName someAttrValue2
794+
sessionAttr:attrName2 someAttrValue2
795795
EXPIRE spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe 2100
796796
APPEND spring:session:sessions:expires:33fdd1b6-b496-4b33-9f7d-df96679d32fe ""
797797
EXPIRE spring:session:sessions:expires:33fdd1b6-b496-4b33-9f7d-df96679d32fe 1800
@@ -814,7 +814,7 @@ HMSET spring:session:sessions:33fdd1b6-b496-4b33-9f7d-df96679d32fe creationTime
814814
maxInactiveInterval 1800 \
815815
lastAccessedTime 1404360000000 \
816816
sessionAttr:attrName someAttrValue \
817-
sessionAttr2:attrName someAttrValue2
817+
sessionAttr:attrName2 someAttrValue2
818818
----
819819
====
820820

@@ -833,7 +833,7 @@ The second session attribute is named `attrName2`, with a value of `someAttrValu
833833

834834
The `Session` instances managed by `RedisIndexedSessionRepository` keeps track of the properties that have changed and updates only those.
835835
This means that, if an attribute is written once and read many times, we need to write that attribute only once.
836-
For example, assume the `sessionAttr2` session attribute from the lsiting in the preceding section was updated.
836+
For example, assume the `attrName2` session attribute from the lsiting in the preceding section was updated.
837837
The following command would be run upon saving:
838838

839839
====

0 commit comments

Comments
 (0)