public class StandardScopeCache extends Object implements ScopeCache
| Constructor and Description |
|---|
StandardScopeCache() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Object> |
clear()
Clears the cache and returns all objects in an unmodifiable collection.
|
Object |
get(String name)
Gets the named object from the cache.
|
Object |
put(String name,
Object value)
Put a value in the cache if the key is not already used.
|
Object |
remove(String name)
Removes the object with this name from the cache.
|
public Object remove(String name)
ScopeCacheremove in interface ScopeCachename - The object name.public Collection<Object> clear()
ScopeCacheclear in interface ScopeCachepublic Object get(String name)
ScopeCacheget in interface ScopeCachename - The name of the object.public Object put(String name, Object value)
ScopeCacheput in interface ScopeCachename - The key.value - The new candidate value.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.