SwiftMemCache alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view SwiftMemCache alternatives based on common mentions on social networks and blogs.
-
SwifterSwift
A handy collection of more than 500 native Swift extensions to boost your productivity. -
SwiftGen-Storyboard
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
SwiftLinkPreview
DISCONTINUED. It makes a preview from an URL, grabbing all the information such as title, relevant texts and images. -
Playbook
📘A library for isolated developing UI components and automatically taking snapshots of them. -
BetterSafariView
A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI. -
SwiftPlantUML
A command-line tool and Swift Package for generating class diagrams powered by PlantUML -
Pythonic.swift
DISCONTINUED. Pythonic tool-belt for Swift – a Swift implementation of selected parts of Python standard library.
InfluxDB – Built for High-Performance Time Series Workloads

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SwiftMemCache or a related project?
README
SwiftMemCache - A Swift Memory Cache
CI Build State
Description
This project contains a Swift class that acts as a memory cache (singleton). It supports optionally namespacing for the cache identifier. It also supports a TTL to invalidate a cashed data object after a certain time.
The purpose of this class is to provide data across the whole code structure with an easy access pattern. You can extract interesting data into the mem cache and access it via a shared instance from anywhere in your code. SwiftMemCache DOES NOT write data to disk!
SwiftMemCache is completely unit tested, to prove that everything works as expected!
Features
NEW: Persistence Feature - Works only for elemental values at the moment
Save the current cache to disk. Entries with an expired TTL will be deleted before the cache gets persisted.
CTMemCache.sharedInstance.saveToDisk()
CTMemCache.sharedInstance.restoreFromDisk()
Add/Change Entry
Adds or changes a specified entry in the mem cache. Default TTL: -1 (object will always live in memory)
CTMemCache.sharedInstance.set("foo", data:<YourObject>, namespace:"bar", ttl:3600)
CTMemCache.sharedInstance.set("foo", data:<YourObject>)
Get
Return an entry if exists, otherwise returns nil
CTMemCache.sharedInstance.get("foo", namespace:"bar")
CTMemCache.sharedInstance.get("foo")
Delete
Deletes an entry by its key (namespace)
CTMemCache.sharedInstance.delete("foo", namespace:"bar")
CTMemCache.sharedInstance.delete("foo")
Exists
Returns true if an entry with the given key (optional namespace) exists
CTMemCache.sharedInstance.exists("foo", namespace:"bar")
Size
Returns the amount of the entries in the mem cache
CTMemCache.sharedInstance.size()
Clean Namespace
Deletes all entries of the given namespace from the mem cache
CTMemCache.sharedInstance.cleanNamespace("foo")
Expired
Checks if an given entry is expired. Returns true/false
CTMemCache.sharedInstance.isExpired("foo", namespace:"bar")
Delete Outdated Entries (TTL expired)
Cleans all entries in the mem cache where the TTL is expire
CTMemCache.sharedInstance.deleteOutdated()
Reset
This wipes all the data from the mem cache:
CTMemCache.sharedInstance.reset()
Requests
For feature requests or bugs open an issue or provide a unit tested Pull Request :-) Find me on Twitter: @ctews