SigningKeyDatabase that caches data.
A signing key database may be used to check keys frequently; it may thus need
to cache some data and it may need to cache data per repository. If an
implementation does cache data, it is responsible itself for refreshing that
cache at appropriate times. Clients can control the cache size somewhat via
setCacheSize(int), although the meaning of the cache size (i.e., its
unit) is left undefined here.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | Returns: the cache size, or -1 if this database has no cache.Retrieves the current cache size. |
| public void | setCacheSize(int
the cache size, ignored if this database does not have a
cache. size)Sets the cache size to use. |
| clearCache | back to summary |
|---|---|
| public void clearCache() Discards any cached data. A no-op if the database has no cache. | |
| getCacheSize | back to summary |
|---|---|
| public int getCacheSize() Retrieves the current cache size.
| |
| setCacheSize | back to summary |
|---|---|
| public void setCacheSize(int size) Sets the cache size to use.
| |