Skip to content

Commit 12c3b4c

Browse files
committed
Documentation updated to version 5.2.0
1 parent 84e0800 commit 12c3b4c

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ as well as on your premise.
3636

3737
- [synchronous and asynchronous APIs](#provided-apis)
3838
- [implements standard APIs defined by Play's `cacheApi` project](#provided-apis)
39-
- support of [named caches](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#named-caches)
40-
- [works with Guice](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/40-migration.md#runtime-time-dependency-injection) as well as [compile-time DI](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/40-migration.md#compile-time-dependency-injection)
41-
- [getOrElse and getOrFuture operations](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-cacheapi) easing the use
42-
- [wildcards in remove operation](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-cacheapi)
43-
- support of collections: [sets](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-sets), [lists](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-lists), and [maps](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-maps)
44-
- [increment and decrement operations](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md#use-of-cacheapi)
45-
- [eager and lazy invocation policies](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#eager-and-lazy-invocation) waiting or not waiting for the result
46-
- several [recovery policies](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#recovery-policy) and possibility of further customization
47-
- support of [several configuration sources](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#running-in-different-environments)
39+
- support of [named caches](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#named-caches)
40+
- [works with Guice](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/40-migration.md#runtime-time-dependency-injection) as well as [compile-time DI](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/40-migration.md#compile-time-dependency-injection)
41+
- [getOrElse and getOrFuture operations](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-cacheapi) easing the use
42+
- [wildcards in remove operation](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-cacheapi)
43+
- support of collections: [sets](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-sets), [lists](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-lists), and [maps](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-maps)
44+
- [increment and decrement operations](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md#use-of-cacheapi)
45+
- [eager and lazy invocation policies](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#eager-and-lazy-invocation) waiting or not waiting for the result
46+
- several [recovery policies](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#recovery-policy) and possibility of further customization
47+
- support of [several configuration sources](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#running-in-different-environments)
4848
- static in the configuration file
4949
- from the connection string optionally in the environmental variable
5050
- custom implementation of the configuration provider
51-
- support of [standalone, cluster,](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#standalone-vs-cluster)
52-
[aws-cluster,](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#aws-cluster)
53-
and [sentinel modes](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#sentinel)
54-
- build on the top of Pekko actors and serializers, [agnostic to the serialization mechanism](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#limitation-of-data-serialization)
51+
- support of [standalone, cluster,](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#standalone-vs-cluster)
52+
[aws-cluster,](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#aws-cluster)
53+
and [sentinel modes](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#sentinel)
54+
- build on the top of Pekko actors and serializers, [agnostic to the serialization mechanism](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#limitation-of-data-serialization)
5555
- for simplicity, it uses deprecated Java serialization by default
5656
- it is recommended to use [Kryo library](https://github.com/romix/akka-kryo-serialization) or any other mechanism
5757

@@ -92,11 +92,11 @@ or you can use shortcuts in the table below.
9292

9393
To use this module:
9494

95-
1. [Add this library into your project](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/10-integration.md) and expose APIs
96-
1. See the [configuration options](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md)
97-
1. [Browse examples of use](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/30-how-to-use.md)
95+
1. [Add this library into your project](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/10-integration.md) and expose APIs
96+
1. See the [configuration options](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md)
97+
1. [Browse examples of use](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/30-how-to-use.md)
9898

99-
If you come from older version, you might check the [Migration Guide](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/40-migration.md)
99+
If you come from older version, you might check the [Migration Guide](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/40-migration.md)
100100

101101

102102
## Samples
@@ -124,15 +124,15 @@ To your SBT `build.sbt` add the following lines:
124124
// enable Play cache API (based on your Play version)
125125
libraryDependencies += play.sbt.PlayImport.cacheApi
126126
// include play-redis library
127-
libraryDependencies += "com.github.karelcemus" %% "play-redis" % "5.1.0"
127+
libraryDependencies += "com.github.karelcemus" %% "play-redis" % "5.2.0"
128128
```
129129

130130

131131
## Compatibility matrix
132132

133133
| play framework | play-redis | documentation |
134134
|----------------|------------------------------------:|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
135-
| 3.0.x | <!-- Play 3.0 -->5.1.0<!-- / --> | [see here](https://github.com/KarelCemus/play-redis/blob/5.1.0/README.md) |
135+
| 3.0.x | <!-- Play 3.0 -->5.2.0<!-- / --> | [see here](https://github.com/KarelCemus/play-redis/blob/5.2.0/README.md) |
136136
| 2.9.x | <!-- Play 2.9 -->3.0.0<!-- / --> | [see here](https://github.com/KarelCemus/play-redis/blob/3.0.0/README.md) |
137137
| 2.8.x | <!-- Play 2.8 -->2.7.0<!-- / --> | [see here](https://github.com/KarelCemus/play-redis/blob/2.7.0/README.md) |
138138
| 2.7.x | <!-- Play 2.7 -->2.5.1<!-- / --> | [see here](https://github.com/KarelCemus/play-redis/blob/2.5.1/README.md) |
@@ -151,7 +151,7 @@ like this library, please feel free to report it or contact me.
151151
## Changelog
152152

153153
For the list of changes and migration guide please see
154-
[the Changelog](https://github.com/KarelCemus/play-redis/blob/5.1.0/CHANGELOG.md).
154+
[the Changelog](https://github.com/KarelCemus/play-redis/blob/5.2.0/CHANGELOG.md).
155155

156156

157157
## Caveat

doc/10-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Although the use of runtime-time injection is preferred, both options are equal
99
// enable Play cache API (based on your Play version)
1010
libraryDependencies += play.sbt.PlayImport.cacheApi
1111
// include play-redis library
12-
libraryDependencies += "com.github.karelcemus" %% "play-redis" % "5.1.0"
12+
libraryDependencies += "com.github.karelcemus" %% "play-redis" % "5.2.0"
1313
```
1414

1515

doc/20-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuration
22

3-
Default configuration and very detailed manual is available in [reference.conf](https://github.com/KarelCemus/play-redis/blob/5.1.0/src/main/resources/reference.conf). It can be overwritten in your `conf/application.conf` file.
3+
Default configuration and very detailed manual is available in [reference.conf](https://github.com/KarelCemus/play-redis/blob/5.2.0/src/main/resources/reference.conf). It can be overwritten in your `conf/application.conf` file.
44

55
There are several features supported in the configuration, they are discussed below. However, by default, there is no need for any further configuration. Default settings are set to the standalone instance running on `localhost:6379?db=0`, which is default for redis server. This instance is named `play` but is also exposed as a default implementation.
66

doc/40-migration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ changes in public API, which needs your code to be updated.
2525

2626
The invocation policy in `2.0.x` was used as an implicit parameter. Since
2727
`2.1.x` it is a static configurable property inside the instance configuration.
28-
See the [updated documentation for more details](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#eager-and-lazy-invocation).
28+
See the [updated documentation for more details](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#eager-and-lazy-invocation).
2929

3030
### Named caches uses @NamedCache instead of @Named
3131

@@ -39,7 +39,7 @@ Since `2.1.0`, there is a new `redis-timeout` property. To avoid
3939
ambiguity, the original `timeout` property was renamed to `sync-redis`.
4040
The `timeout` property was deprecated any will be removed in `2.2.0`.
4141

42-
See the updated [documentation for more details](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#eager-and-lazy-invocation).
42+
See the updated [documentation for more details](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#eager-and-lazy-invocation).
4343

4444

4545
## Migration from 1.6.x to 2.0.x
@@ -50,8 +50,8 @@ The major goal of the 2.0.x version was to support named caches and clean up the
5050

5151
- default database was changed from 1 to 0 (redis default) to remove the inconsistency between play-redis and the redis itself
5252
- the cache instance defined directly under the `play.cache.redis` is a default instance and is named with a default name
53-
- introduced `instances` property to support named caches. See [documentation](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#named-caches) for more details.
54-
- `configuration` property was redesigned and renamed to `source`. Valid values are now `standalone`, `cluster`, `connection-string`, and `custom`. See [documentation](https://github.com/KarelCemus/play-redis/blob/5.1.0/doc/20-configuration.md#standalone-vs-cluster) for more details.
53+
- introduced `instances` property to support named caches. See [documentation](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#named-caches) for more details.
54+
- `configuration` property was redesigned and renamed to `source`. Valid values are now `standalone`, `cluster`, `connection-string`, and `custom`. See [documentation](https://github.com/KarelCemus/play-redis/blob/5.2.0/doc/20-configuration.md#standalone-vs-cluster) for more details.
5555
- `connection-string-variable` was replaced by the `connection-string` property defining the connection string itself. The value is now passed directly into the property through, e.g., `${REDIS_URL}`, which HOCON correctly resolves. This applies when combined with `source: connection-string`.
5656
- `wait` property renamed to `timeout`
5757
- `source`, `timeout`, `dispatcher`, and `recovery` define defaults and may be locally overridden within each named cache configuration.
@@ -72,7 +72,7 @@ Major redesign of `RedisCacheModule`, however, no changes in use are expected. I
7272

7373
#### Compile-time DI
7474

75-
Major redesign of `RedisCacheComponents`. See the [trait](https://github.com/KarelCemus/play-redis/blob/5.1.0/src/main/scala/play/api/cache/redis/RedisCacheComponents.scala#L14) for details. To create
75+
Major redesign of `RedisCacheComponents`. See the [trait](https://github.com/KarelCemus/play-redis/blob/5.2.0/src/main/scala/play/api/cache/redis/RedisCacheComponents.scala#L14) for details. To create
7676
new API, call `cacheApi( instance )`, where the instance is either a String with the instance name or `RedisInstance` object with a custom configuration. This returns a `RedisCaches` object encapsulating all available APIs. In case of using multiple different APIs, it is suggested to **reuse this object** to prevent the duplicate creation of instances of the same cache connector. To provide a custom instance configuration, either override `redisInstanceResolver` mapping names to the objects or pass the `RedisInstance` object directly to the `cacheApi` call. For custom recovery policy override `recoveryPolicyResolver`.
7777

7878
### Implementation changes

0 commit comments

Comments
 (0)