Class OyCaching

  • All Implemented Interfaces:
    Objectionary

    public final class OyCaching
    extends Object
    implements Objectionary
    Objectionary which caches objects locally.
    Since:
    1.0
    • Constructor Detail

      • OyCaching

        public OyCaching​(String ver,
                         Path cache,
                         Objectionary primary)
        Ctor.
        Parameters:
        ver - Version.
        cache - Cache directory.
        primary - Primary objectionary.
    • Method Detail

      • get

        public org.cactoos.Input get​(String name)
                              throws IOException
        Description copied from interface: Objectionary
        Resolve object.
        Specified by:
        get in interface Objectionary
        Parameters:
        name - Object name.
        Returns:
        Object code.
        Throws:
        IOException - If fails to fetch.