Item

constructor(key: K, value: V, expires: Long)

Creates a new item with the specified key, value, and expiration time.

Parameters

K

The type of keys maintained by this cache

V

The type of mapped values