TXMemoryCache
public final class TXMemoryCache : NSObject
extension TXMemoryCache: TXCache
A simple in-memory cache that updates its contents and returns the proper translation.
This class is not thread-safe, so be sure that you are calling the update / get methods from a serial queue.
-
Declaration
Swift
public func get() -> TXTranslations
-
Declaration
Swift
public func get(key: String, localeCode: String) -> String?
-
Declaration
Swift
public func update(translations: TXTranslations)