Giter Site home page Giter Site logo

fr_cache's Introduction

F&R cache

Hi, user! This is my F&R cache. Let me tell you about it.

F&R is a combination of LRU (Last Recently Used) and LFU (Last Frequently used) caches. It is called F&R, because it can split cache memory between LFU and LRU depending on what type of cache is more neccesarry in a moment. So when LFU has not enough memory it takes this memory from LRU and vice versa. LFU has bigger priority, then LRU. It means that, firstly, new element is placed in LRU, and when we hit at him, he is being replaced to LFU.

Firstly build this project with CMake.

To run my cache just enter "./run" in console. It's recommended to run tests firstly by entering "./run test" in console.

If you want to see the work of cache in all details enter "./run detailed". In this mode you will see dump of cache in console and graphic vizualization. To see graphic vizualization of F&Q, you can open graph.dot with Graphviz or special extesion for .dot files in Visual Studio Code. It's really amusing to watch this in real time.

So, I whish you like it. You can also look for another interesting projects in my profile. Have a nice day or night!

(@^◡^)

fr_cache's People

Contributors

greggregbean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.