public class OLocalRecordCache extends OAbstractRecordCache
excludedCluster, profilerMetadataPrefix, profilerPrefix, underlying
Constructor and Description |
---|
OLocalRecordCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the entire cache by removing all the entries
|
void |
deleteRecord(ORID rid)
Removes record with specified identifier from both primary and secondary caches
|
ORecord |
findRecord(ORID rid)
Looks up for record in cache by it's identifier.
|
void |
invalidate()
Invalidates the cache emptying all the records.
|
void |
shutdown()
All operations running at cache destruction stage
|
void |
startup()
All operations running at cache initialization stage
|
String |
toString() |
void |
updateRecord(ORecord record)
Pushes record to cache.
|
freeCluster, freeRecord, getSize, isEnabled, setEnable
public void startup()
OAbstractRecordCache
startup
in class OAbstractRecordCache
public void updateRecord(ORecord record)
record
- record that should be cachedpublic ORecord findRecord(ORID rid)
rid
- unique identifier of recordnull
public void deleteRecord(ORID rid)
deleteRecord
in class OAbstractRecordCache
rid
- unique identifier of recordpublic void shutdown()
OAbstractRecordCache
shutdown
in class OAbstractRecordCache
public void clear()
OAbstractRecordCache
clear
in class OAbstractRecordCache
public void invalidate()
Copyright © 2009–2020 OrientDB. All rights reserved.