MemStorage class

A BaseStorage implementation that stores the rate limit data in memory.

Implemented types

Constructors

MemStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
items Map<String, IpItem>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String key, Duration duration) → IpItem
override
getItem(String key) → IpItem?
override
getItems() List<IpItem>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) → void
override
removeAll() → void
override
resetAll(Duration duration) → void
override
resetIp(String key, Duration duration) → void
override
toString() String
A string representation of this object.
inherited
updateCount(String key) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited