CacheOptions class

Configuration options for internal caching.

Constructors

CacheOptions({bool enabled = true, int normalizedCapacity = 1000, int bigramCapacity = 1000, int ngramCapacity = 1000})
Creates a CacheOptions.
const

Properties

bigramCapacity int
Capacity for the bigram cache.
final
enabled bool
Whether caching is enabled (default: true).
final
hashCode int
The hash code for this object.
no setterinherited
ngramCapacity int
Capacity for the n-gram cache.
final
normalizedCapacity int
Capacity for the normalized string cache.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enabled, int? normalizedCapacity, int? bigramCapacity, int? ngramCapacity}) CacheOptions
Creates a copy of this object with the given fields replaced with the new values.
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