| 
    Apache Mesos
    
   | 
 
Encapsulates Appc image cache. More...
#include <cache.hpp>
Public Member Functions | |
| Try< Nothing > | recover () | 
| Recovers/rebuilds the cache from its image store directory.  More... | |
| Try< Nothing > | add (const std::string &imageId) | 
| Adds an image to the cache by the image's id.  More... | |
| Option< std::string > | find (const Image::Appc &image) const | 
| Finds image id of an image if it is present in the cache/store.  More... | |
Static Public Member Functions | |
| static Try< process::Owned< Cache > > | create (const Path &storeDir) | 
| Factory method for creating cache.  More... | |
Encapsulates Appc image cache.
Note: We only keep 1 level image information and do not bother to keep dependency information. This is because dependency graph will be resolved at runtime (say when store->get is called).
Adds an image to the cache by the image's id.
Add is done in two steps:
| imageId | Image id for the image that has to be added to the cache. | 
      
  | 
  static | 
| Option<std::string> mesos::internal::slave::appc::Cache::find | ( | const Image::Appc & | image | ) | const | 
Finds image id of an image if it is present in the cache/store.
| appc | Appc image data. | 
Recovers/rebuilds the cache from its image store directory.
 1.8.11