Skip to content

Arthurli/LRUCacheKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LRUCacheKit

A sample LRU cache kit

  //Setup cache number
  LRUCacheKit.setCacheNumber(5)

  //Save cache
  for  a:Int in array {
    LRUCacheKit.setCacheObject(a, byKey: String(a))
    LRUCacheKit.showDescription()
  }
  
  //Get cache
  var b: AnyObject? = LRUCacheKit.cacheObjectByKey(String(a))

        
   //Change cache number
  LRUCacheKit.setCacheNumber(3)
  LRUCacheKit.showDescription()

About

A sample LRU cache kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages