RedisCacheStore class
- Implemented types
Constructors
- RedisCacheStore(Command command, {String prefix = 'flint:cache:', int scanCount = 1000, int deleteBatchSize = 500})
- RedisCacheStore.withSender(RedisCommandSender sender, {String prefix = 'flint:cache:', int scanCount = 1000, int deleteBatchSize = 500})
Properties
- deleteBatchSize → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- prefix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanCount → int
-
final
Methods
-
clear(
) → Future< void> -
override
-
close(
) → Future< void> -
get(
String key) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remember<
T> (String key, Duration ttl, Future< T> loader()) → Future<T> -
override
-
remove(
String key) → Future< void> -
override
-
removeMany(
Iterable< String> keys) → Future<void> -
override
-
removeWhere(
bool shouldRemove(String key)) → Future< void> -
override
-
set(
String key, dynamic value, {Duration? ttl}) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
{String host = 'localhost', int port = 6379, bool secure = false, String? username, String? password, int? database, String prefix = 'flint:cache:', int scanCount = 1000, int deleteBatchSize = 500}) → Future< RedisCacheStore> -
connectFromUrl(
String url, {String prefix = 'flint:cache:', int scanCount = 1000, int deleteBatchSize = 500}) → Future< RedisCacheStore> -
Connects to Redis using a
redis://orrediss://URL.