CacheKeyGenerator class

缓存键生成器

Constructors

CacheKeyGenerator()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

customGenerator String Function({dynamic data, Map<String, dynamic>? headers, required String method, required String path, Map<String, dynamic>? queryParameters})?
自定义缓存键生成策略
getter/setter pair

Static Methods

generate({required String method, required String path, Map<String, dynamic>? queryParameters, dynamic data, Map<String, dynamic>? headers}) String
生成缓存键
generateWithCustom({required String method, required String path, Map<String, dynamic>? queryParameters, dynamic data, Map<String, dynamic>? headers}) String
使用自定义生成器(如果已设置)或默认生成器