Add integer methods

This commit is contained in:
ismailgulek
2020-09-28 16:17:13 +03:00
parent 07e61c6e3d
commit 8a0c733a29
3 changed files with 23 additions and 0 deletions
@@ -23,11 +23,13 @@ protocol KeyValueStore {
func set(_ value: Data?, forKey key: KeyValueStoreKey) throws
func set(_ value: String?, forKey key: KeyValueStoreKey) throws
func set(_ value: Bool?, forKey key: KeyValueStoreKey) throws
func set(_ value: Int?, forKey key: KeyValueStoreKey) throws
// getters
func data(forKey key: KeyValueStoreKey) throws -> Data?
func string(forKey key: KeyValueStoreKey) throws -> String?
func bool(forKey key: KeyValueStoreKey) throws -> Bool?
func integer(forKey key: KeyValueStoreKey) throws -> Int?
// remove
func removeObject(forKey key: KeyValueStoreKey) throws