public interface Cache
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy cache.
|
Object |
get(String id)
Get a resource by id.
|
void |
put(String id,
Object resource)
Put a resource into the cache.
|
void put(String id, Object resource)
id
- the id of the resourceresource
- the resource to cacheObject get(String id)
id
- the id of the resourcevoid destroy()
Copyright © 2022. All rights reserved.