BannerCache class

In-memory cache for banner data Cache key format: "${bannerName.toLowerCase()}_$size"

Constructors

BannerCache()
factory

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

clear(String bannerName, String bannerSize) → void
Clear cache for a specific key
clearAll() → void
Clear all cache
contains(String bannerName, String bannerSize) → bool
Check if cache exists for a key
get(String bannerName, String bannerSize) → List<AdItem>?
Get cached banners for a key
getKeys() → Set<String>
Get all cache keys (for debugging)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String bannerName, String bannerSize, List<AdItem> items) → void
Store banners in cache
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

generateKey(String bannerName, String bannerSize) → String
Generate cache key from banner name and size