UNPKG

sams-algorithm-lru

Version:

A memory scheduler that uses an lru algorithm.

31 lines (19 loc) 664 B
# LRU Algorithm LRU memory scheduler Algorithm All documentation here [Docs](https://github.com/samsteam/algorithm-lru/wiki) ## How to use ### To clone this module: git clone --recursive https://github.com/samsteam/algorithm-lru ``` var LRU = require('sams-algorithm-lru'); LRU.ProcessRequirements(rawRequirements, framesAmmount, function(requerimentsResult, totalPageFault){ // do stuff... }); ``` ## Demo Execute `node test.js`. ## How contribute? ### To push your changes: git push --recurse-submodules=on-demand ### If having trouble with pushing your changes, try this first: git submodule update --remote --merge