TXDecoratorCache
open class TXDecoratorCache : NSObject, TXCache
Decorator class managing an internal class and propagating the get() and update() protocol method calls to said cache.
-
Key used in the TXStringInfo dictionary
Declaration
Swift
public static let STRING_KEY: String
-
Initializes the decorator class with a specific cache.
Declaration
Swift
@objc public init(internalCache: TXCache)
Parameters
internalCache
The cache to be used
-
Declaration
Swift
public func get() -> TXTranslations
-
Declaration
Swift
public func get(key: String, localeCode: String) -> String?
-
Declaration
Swift
public func update(translations: TXTranslations)