Swiftpack.co - nashysolutions/Stash as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by nashysolutions.
nashysolutions/Stash 1.1.0
Keep images in volatile memory for a pre-determined amount of time.
⭐️ 0
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/nashysolutions/Stash.git", from: "1.1.0")

Stash

iOS macOS

Hold images in volatile memory for a pre-determined amount of time.

Usage

Stash a resource using an instance of UUID.

Cache.stash(image, with: id, duration: .short)

Retrieve using the same id value.

let image = Cache.resource(for: id)

Installation

Use the Swift Package Manager. See Releases.

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release 1.1.0
2 weeks ago

See Changelog.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics