https://github.com/alleninstitute/lruc
Modern, fast and lightweight C++11 LRU in-memory cache implementation
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (3.5%) to scientific vocabulary
Repository
Modern, fast and lightweight C++11 LRU in-memory cache implementation
Basic Info
- Host: GitHub
- Owner: AllenInstitute
- License: apache-2.0
- Language: C++
- Default Branch: master
- Homepage: https://adikanchukov.github.io/lruc/
- Size: 21.5 KB
Statistics
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
lruc
Modern, fast and lightweight C++11 LRU in-memory cache implementation.
Build Requirements
Complexity
lruc::lru_cache::insert lruc::lru_cache::find lruc::lru_cache::contains lruc::lru_cache::remove
Amortized constant on average, worst case linear in the size of the cache.
lruc::lru_cache::clear
Linear in the size of the cache, i.e., the number of elements.
lruc::lru_cache::empty lruc::lru_cache::size lruc::lru_cache::max_size lruc::lru_cache::hit_count lruc::lru_cache::miss_count lruc::lru_cache::insert_count lruc::lru_cache::evict_count lruc::lru_cache::hit_count lruc::lru_cache::cbegin lruc::lru_cache::cend lruc::lru_cache::to_string
Constant.
Usage
```cpp using namespace lruc;
lrucache<sizet, std::string> cache(42);
cache.insert(1, "Trent"); cache.insert(2, "Reznor");
cache.remove(1);
const lrucache<sizet, std::string>::constiterator valueiter = cache.find(2);
if (valueiter != cache.cend()) std::cout << valueiter->second; else std::cout << cache.to_string(); ```
License
Copyright 2017 Aleksandr Dikanchukov
Licensed under the Apache License, Version 2.0
Owner
- Name: Allen Institute
- Login: AllenInstitute
- Kind: organization
- Location: Seattle, WA
- Website: https://alleninstitute.org
- Repositories: 184
- Profile: https://github.com/AllenInstitute
Please visit http://alleninstitute.github.io/ for more information.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0