
public class ORecordCacheWeakRefs extends OAbstractMapCache<WeakHashMap<ORID,WeakReference<ORecord>>> implements ORecordCache
cache| Constructor and Description |
|---|
ORecordCacheWeakRefs() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRecords() |
ORecord |
get(ORID rid)
Look up for record in cache by it's identifier
|
ORecord |
put(ORecord record)
Push record to cache.
|
ORecord |
remove(ORID rid)
Remove record with specified identifier
|
void |
shutdown()
All operations running at cache destruction stage
|
clear, disable, enable, isEnabled, keys, size, startuppublic ORecord get(ORID rid)
ORecordCacheget in interface ORecordCacherid - unique identifier of recordnullpublic ORecord put(ORecord record)
ORecordCacheput in interface ORecordCacherecord - record that should be cachedpublic ORecord remove(ORID rid)
ORecordCacheremove in interface ORecordCacherid - unique identifier of recordnullpublic void clearRecords()
clearRecords in interface ORecordCachepublic void shutdown()
ORecordCacheshutdown in interface ORecordCacheshutdown in class OAbstractMapCache<WeakHashMap<ORID,WeakReference<ORecord>>>Copyright © 2009–2025 OrientDB. All rights reserved.