ChannelCachePolicy class Null safety
Cache policies for caching channels
- Inheritance
-
- Object
- CachePolicy<
IChannel> - ChannelCachePolicy
Constructors
-
ChannelCachePolicy(CachePolicyPredicate<
IChannel> predicate) - Constructor
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
and(
CachePolicy< IChannel> other) → CachePolicy<IChannel> -
Convenience method to require other policy
inherited
-
canCache(
IChannel entity) → bool -
Pure function which will decide based on given predicate if
entity
will be cachedinherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
or(
CachePolicy< IChannel> other) → CachePolicy<IChannel> -
Convenience method to concatenate other policy
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
all
→ CachePolicy<
IChannel> -
Cache all channels
final
-
def
→ CachePolicy<
IChannel> -
Default policy is all
final
-
none
→ CachePolicy<
IChannel> -
Do not cache channels
final
-
text
→ CachePolicy<
IChannel> -
Cache only text channels
final
-
thread
→ CachePolicy<
IChannel> -
Cache only thread channels
final
-
voice
→ CachePolicy<
IChannel> -
Cache only voice channels
final