// // PINCacheObjectSubscripting.h // PINCache // // Created by Rocir Marcos Leite Santiago on 4/2/16. // Copyright © 2016 Pinterest. All rights reserved. // #import @protocol PINCacheObjectSubscripting @required /** This method enables using literals on the receiving object, such as `id object = cache[@"key"];`. @param key The key associated with the object. @result The object for the specified key. */ - (id)objectForKeyedSubscript:(NSString *)key; /** This method enables using literals on the receiving object, such as `cache[@"key"] = object;`. @param object An object to be assigned for the key. @param key A key to associate with the object. This string will be copied. */ - (void)setObject:(id)obj forKeyedSubscript:(NSString *)key; @end