|
ensembl-hive
2.8.1
|
Public Member Functions | |
| public | TIEHASH () |
| public | write () |
| public | read () |
| public | FETCH () |
| public | STORE () |
| public | DELETE () |
| public | CLEAR () |
| public | EXISTS () |
| public | FIRSTKEY () |
| public | NEXTKEY () |
| public | DESTROY () |
| public | create_node () |
| protected | _get_data_length () |
| public | insert () |
| public | delete () |
| public | flush () |
| public | print () |
| public | pretty_self () |
| public | pretty_chains () |
This module implements a least recently used (LRU) cache in memory
through a tie interface. Any time data is stored in the tied hash,
that key/value pair has an entry time associated with it, and
as the cache fills up, those members of the cache that are
the oldest are removed to make room for new entries.
So, the cache only "remembers" the last written entries, up to the
size of the cache. This can be especially useful if you access
great amounts of data, but only access a minority of the data a
majority of the time.
The implementation is a hash, for quick lookups,
overlaying a doubly linked list for quick insertion and deletion.
On a WinNT PII 300, writes to the hash were done at a rate
3100 per second, and reads from the hash at 6300 per second.
Work has been done to optimize refreshing cache entries that are
frequently read from, code like $cache{entry}, which moves the
entry to the end of the linked list internally.
| protected Bio::EnsEMBL::Utils::Cache::_get_data_length | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::CLEAR | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::create_node | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::DELETE | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::delete | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::DESTROY | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::EXISTS | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::FETCH | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::FIRSTKEY | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::flush | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::insert | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::NEXTKEY | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::pretty_chains | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::pretty_self | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::print | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::read | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::STORE | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::TIEHASH | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Cache::write | ( | ) |
Undocumented method
Code: