Giter VIP home page Giter VIP logo

hydbcache's Introduction

简介

HYDBCache提供了HYMemoryCacheHYDiskCache,并通过HYCache进行包装

特性

  • 内存缓存支持常见的缓存功能,并且支持LRU淘汰算法
  • 磁盘缓存包含了数据库缓存和文件缓存两部分,会根据文件大小自动选择存储到数据库还是文件,当文件超过16K的时候直接存储到数据库,大于20k的文件,meta信息存储在,数据本身存储在文件中,支持LRU,支持非NSCoding协议对象
  • 采用自己编译的sqlite,比Apple自带的快,并且有几项优化,第一关闭了内存统计,第二开启了mapping,第三关闭了所有线程操作的锁,采用外部单一的锁进行并发控制

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 7.0 and uppper

Installation

pod "HYDBCache"

Author

fangyuxi, [email protected]

License

HYDBCache is available under the MIT license. See the LICENSE file for more info.

hydbcache's People

Contributors

fangyuxi avatar

Stargazers

 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.