xref: /expo/packages/expo-branch/ios/EXBranch/RNBranch/RNBranchAgingDictionary.h (revision b6008592)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 //  RNBranchAgingDictionary.h
3 //  RNBranch
4 //
5 //  Created by Jimmy Dee on 3/8/17.
6 //  Copyright © 2017 Branch Metrics. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 @interface RNBranchAgingDictionary<KeyType, ObjectType> : NSObject
12 
13 @property (nonatomic, readonly) NSTimeInterval ttl;
14 
15 #pragma mark - Object lifecycle
16 
17 - (instancetype _Nonnull)init NS_UNAVAILABLE;
18 - (instancetype _Nonnull)initWithTtl:(NSTimeInterval)ttl NS_DESIGNATED_INITIALIZER;
19 
20 + (instancetype _Nonnull)dictionaryWithTtl:(NSTimeInterval)ttl;
21 
22 #pragma mark - Methods from NSMutableDictionary
23 
24 - (void)setObject:(ObjectType _Nonnull)object forKey:(KeyType<NSCopying> _Nonnull)key;
25 - (void)setObject:(ObjectType _Nonnull)object forKeyedSubscript:(KeyType<NSCopying> _Nonnull)key;
26 
27 - (nullable ObjectType)objectForKey:(KeyType _Nonnull)key;
28 - (nullable ObjectType)objectForKeyedSubscript:(KeyType _Nonnull)key;
29 
30 - (void)removeObjectForKey:(KeyType _Nonnull)key;
31 
32 @end
33 

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026