Constructor
# new ProfileCache(maxEntries, maxAgeMs, client)
Creates a new profile cache.
Parameters:
Name | Type | Description |
---|---|---|
maxEntries |
number
|
The maximum number of entries to cache. |
maxAgeMs |
number
|
The maximum age of an entry in milliseconds. |
client |
MatrixClient
|
The client to use to get profile updates. |