Class S3Repository

    • Constructor Detail

      • S3Repository

        public S3Repository​(S3Config config)
        Construct a LFS repository storing large objects in Amazon S3
        config - AWS S3 storage bucket configuration
    • Method Detail

      • cacheObjectMetaData

        protected void cacheObjectMetaData​(AnyLongObjectId oid,
                                           long size)
        Cache metadata (size) for an object to avoid extra roundtrip to S3 in order to retrieve this metadata for a given object. Subclasses can implement a local cache and override {getSize(AnyLongObjectId) to retrieve the object size from the local cache to eliminate the need for another roundtrip to S3
        oid - the object id identifying the object to be cached
        size - the object's size (in bytes)