MemoryAuditRepository class

In-memory AuditRepository keeping a bounded ring of recent entries.

Implemented types

Constructors

MemoryAuditRepository({int capacity = 10000})
Creates an in-memory audit repository.

Properties

capacity int
The maximum number of entries retained.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

append(AuditEntry entry) Future<void>
Appends entry to the trail.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recent({int limit = 100}) Future<List<AuditEntry>>
Returns the most recent entries, newest first, up to limit.
override
toString() String
A string representation of this object.
inherited

Operators

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