MemberCachePolicy class Null safety
Cache policies for caching members
- Inheritance
- Object
- CachePolicy<
Member> - MemberCachePolicy
Constructors
-
MemberCachePolicy(CachePolicyPredicate<
Member> predicate) - Constructor
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
and(
CachePolicy< Member> other) → CachePolicy<Member> -
Convenience method to require other policy
inherited
-
canCache(
Member 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< Member> other) → CachePolicy<Member> -
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<
Member> -
Cache all members
final
-
def
→ CachePolicy<
Member> -
Default policy is owner or voice. So it caches guild owners and users in voice channels
final
-
none
→ CachePolicy<
Member> -
Do not cache members
final
-
online
→ CachePolicy<
Member> -
Cache members which have online status
final
-
owner
→ CachePolicy<
Member> -
Cache only member which are owner of guild
final
-
voice
→ CachePolicy<
Member> -
Cache only members which have voice state not null
final