CachePeek class
CachePeek
Annotation for Cached
package.
Throws an InvalidGenerationSourceError
- if more then one method is targeting Cached method cache
- if method return type is incorrect
- if method has different parameters then target function (excluding Ignore, IgnoreCache)
- if method is not abstract
Example
Use @CachePeek annotation
In this example, peekSthDataCache will return cache data from getDataWithCached method
@CachePeek(methodName: "getDataWithCached")
SomeResponseType? peekSthDataCache();
- Annotations
-
- @Target({TargetKind.method})
Constructors
- CachePeek.new(String methodName)
-
CachePeek
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodName → String
-
Name of method to be cache peek
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited