Skip to content

Commit

Permalink
hide the cache initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Jan 5, 2020
1 parent a6bbce7 commit 29857fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Papr/Utils/Cache/Cache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class Cache {
private let storageStream = PublishSubject<[(key: CacheKey, value: Any)]>()
private var storage = [(key: CacheKey, value: Any)]()

init() { }
private init() {}

func set<T: Cachable>(value: T) {
storage.insert(value)
Expand Down

0 comments on commit 29857fe

Please sign in to comment.