4 interface MaxAgeEntry extends Entry {
8 * Automatically cleanup the items in the provided `map`. The property of the expiration timestamp should be named `maxAge`.
10 * @param map - Map instance which should be cleaned up.
12 export default function mapAgeCleaner<K = any, V extends MaxAgeEntry = MaxAgeEntry>(map: Map<K, V>): any;
14 * Automatically cleanup the items in the provided `map`.
16 * @param map - Map instance which should be cleaned up.
17 * @param property - Name of the property which olds the expiry timestamp.
19 export default function mapAgeCleaner<K = any, V = Entry>(map: Map<K, V>, property: string): any;