title: EGOcache cocoa pod there are no examples so how does it work
body: <p>I'm working on a ipad app in xcode and wan't to cache some data.
  Everywhere and also on stack overflow pleople say use EGOcache.
  The site shows that lots of people use this <a href="https://github.com/enormego/EGOCache" rel="nofollow">https://github.com/enormego/EGOCache</a>
  But everybody seems to get how it works and i don't.</p>
  
  <p>But they leave no examples and the aren't any to be found.</p>
  
  <p>So if you have experience please show me 3 things.</p>
  
  <p>Save NSData with an key,
  Get NSData with an key,
  Clear cache</p>
  
  <p>For save with timer i think this is correct:</p>
  
  <pre><code>[self.cache setData:data0 forKey:@"MessagesCache" withTimeoutInterval:timer];
  </code></pre>
  
  <p>For clear cache this:</p>
  
  <pre><code>[self.cache clearCache];
  </code></pre>
  
  <p>But getting i have no idea, so i can't test it.</p>
  
  <p>self.cache is an instantiation of the EGOcache implementation file.</p>
  
  <pre><code>@property (strong, nonatomic) EGOCache *cache;
  </code></pre>
  
  <p>Hope for help, thanks.</p>