Track is a thread safe cache write by Swift. Composed of DiskCache and MemoryCache which support LRU.
Features:
- Thread safe: Implement by dispatch_semaphore_t lock and DISPATCH_QUEUE_CONCURRENT. Cache methods are thread safe and no deadlock.
- LRU: Implement by linkedlist, it`s fast. You can manage a cache through functions to limit size, age of entries and memory usage to eliminate least recently used object.
- Support async and sync operation.
- Cache implement SequenceType Generator, support subscrip for … in map flapmap filter…
