You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,22 +36,22 @@ as well as on your premise.
36
36
37
37
- [synchronous and asynchronous APIs](#provided-apis)
38
38
- [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)
48
48
- static in the configuration file
49
49
- from the connection string optionally in the environmental variable
50
50
- 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)
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)
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)
55
55
- for simplicity, it uses deprecated Java serialization by default
56
56
- it is recommended to use [Kryo library](https://github.com/romix/akka-kryo-serialization) or any other mechanism
57
57
@@ -92,11 +92,11 @@ or you can use shortcuts in the table below.
92
92
93
93
To use this module:
94
94
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)
98
98
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)
100
100
101
101
102
102
## Samples
@@ -124,15 +124,15 @@ To your SBT `build.sbt` add the following lines:
124
124
// enable Play cache API (based on your Play version)
Copy file name to clipboardExpand all lines: doc/20-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Configuration
2
2
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.
4
4
5
5
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.
Copy file name to clipboardExpand all lines: doc/40-migration.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ changes in public API, which needs your code to be updated.
25
25
26
26
The invocation policy in `2.0.x` was used as an implicit parameter. Since
27
27
`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).
29
29
30
30
### Named caches uses @NamedCache instead of @Named
31
31
@@ -39,7 +39,7 @@ Since `2.1.0`, there is a new `redis-timeout` property. To avoid
39
39
ambiguity, the original `timeout` property was renamed to `sync-redis`.
40
40
The `timeout` property was deprecated any will be removed in `2.2.0`.
41
41
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).
43
43
44
44
45
45
## 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
50
50
51
51
- default database was changed from 1 to 0 (redis default) to remove the inconsistency between play-redis and the redis itself
52
52
- 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.
55
55
- `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`.
56
56
- `wait` property renamed to `timeout`
57
57
- `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
72
72
73
73
#### Compile-time DI
74
74
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
76
76
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`.
0 commit comments