https://github.com/alleninstitute/lruc

Modern, fast and lightweight C++11 LRU in-memory cache implementation

https://github.com/alleninstitute/lruc

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
Last synced: 10 months ago · JSON representation

Repository

Modern, fast and lightweight C++11 LRU in-memory cache implementation

Basic Info
Statistics
  • Stars: 1
  • Watchers: 4
  • Forks: 3
  • Open Issues: 0
  • Releases: 0
Created almost 8 years ago · Last pushed almost 8 years ago
Metadata Files
Readme License

README.md

lruc

Modern, fast and lightweight C++11 LRU in-memory cache implementation.

Build Requirements

  • Compiler with C++11 standart support
  • CMake >= 3.1

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

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
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels