Cache

2.0.0

nashysolutions/Cache

What's New

Release 2.0.0

2022-07-24T03:48:39Z

See Changelog.

Cache

iOS macOS

Hold values or objects in volatile memory for a pre-determined amount of time.

Usage

Stash a resource against an instance of UUID.

let cache = Cache<UIImage>()
cache.stash(image, with: id, duration: .short)

// retrieve using the same `id` value.
let image: UIImage? = cache.resource(for: id)

Installation

Use the Swift Package Manager. See Releases.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Aug 01 2022 03:57:32 GMT-0500 (GMT-05:00)