Releases: KarelCemus/play-redis
2.1.0
Published snapshots no longer depends on scoverage runtime #143.
play.cache.AsyncCacheApi
is bound to JavaRedis
instead of DefaultAsyncCacheApi
to fixed value deserialization and support Java HTTP context #140.
Standalone client now fails eagerly when the connection to redis is not
established. This is to avoid long timeout while the rediscala is trying
to reconnect. #147
Replaced SETNX
and SETEX
by SET
operation with EX
and NX
parameters to
implement the set operation atomically. In consequence, slightly changed RedisConnector
API.
#156
Deprecated timeout
property and replaced by sync-timeout
with the identical
meaning and use. Will be removed by 2.2.0. #154
Introduced optional redis-timeout
property indicating timeout on redis queries.
This is the workaround as the rediscala has no timeout on the requests and they might
be never completed. However, to avoid performance issues, the timeout is disabled by default.
See the configuration for more details. #154
Rediscala bumped to 1.8.3 and subsequently Akka bumped to 2.5.6 #150.
Revamped tests, reduced their number but increased value and code coverage #108
Removal of @Named
and introduction of @NamedCache
Named caches now uses @NamedCache
instead of @Named
to be consistent with Play's EhCache and
enable interchangeability of the implementation.
Migration: Change the annotation where necessary.
Backward compatibility: In simple scenarios, there should
be no breaking changes. Use of @Named
was deprecated and should emit warning in logs, but the
binding should still work. The warnings can be disabled through the logger configuration, though
the support will be fully removed in the 2.2.0
. The complex scenarios with the custom
RedisInstance
or RedisCaches
have to be migrated right away, there is no fallback binding.
Note: RecoveryPolicy
still uses @Named
as it neither is nor relates to any particular cache.
Revamped Invocation Policy
Dropped implicit InvocationPolicy
from Scala version of the API,
replaced by the instance configuration through the config file.
Introduced configuration property invocation
. It works also with JavaRedis.
For more details, see the updated documentation
#147.
Setting version to 2.0.2
play.cache.AsyncCacheApi
is bound to JavaRedis
instead of DefaultAsyncCacheApi
to fixed value deserialization and support Java HTTP context #140.
2.0.1
2.0.0 (deprecated)
Deprecation note: It doesn't bind any implementation to play.api.cache.AsyncCacheApi
.
Introduced support of Redis Cluster in #84.
Implemented increment in maps #112.
Support of named caches #114
Introduced prefix
configuration property to apply a namespace on all keys in the cache instance #118.
Simplified RedisCacheModule
and RedisCacheComponents
. Internal components are no longer published, removed Binder
class, introduced RedisInstanceProvider
instead. Introduced RedisInstanceResolver
and RecoveryPolicyResolver
to provide custom implementations. Introduced RedisCaches
handler encapsulating all APIs to a single named cache. #122
Created Wiki with more detailed and structured documentation.
Revamped configuration as a consequence of named cache integration #114. Some properties were removed, instance configuration is now more direct, named caches are supported. See Migration Guide for more details.
Introduced InvocationPolicy
implementing Eager
and Lazy
invocation mechanism handling waiting for the result of the set
operation. Lazy
policy (default) does wait for the result, Eager
does not wait and ignores it instead #98.
1.6.1
1.6.0
1.5.1
1.4.2
1.5.0
Scredis connector replaced
by Rediscala implementation
due to repository inactivity, no release management, missing support of cluster,
and unreleased support of Scala 2.12.
Due to changes in the connector, there are slightly relaxed constraints
of return values in both CacheApi
and CacheAsyncApi
. For example,
some operations instead of List
return Seq
and instead of Set
also
return Seq
. This change was introduced to avoid possibly unnecessary
collection conversion inside the play-redis
.
Changed return type Unit
in AbstractCacheApi
to akka.Done
with the same meaning but
but better signalizing the intention.
Cross-compiled for Scala 2.11 and Scala 2.12.