Giter VIP home page Giter VIP logo

exfile-b2's Introduction

ExfileB2

Build Status

A Backblaze B2 adapter for Exfile.

ExfileB2 uses a local file-based cache to speed up file accesses and reduce bandwidth needs especially when doing processing. The default maximum is 100 MB, you can configure this to any amount you need.

ExfileB2 uses B2Client to interface with Backblaze B2. If you want to use with Backblaze B2 without Exfile, you can use that library.

Requires Elixir ~> 1.2.

Installation

  1. Add exfile_b2 to your list of dependencies in mix.exs:

    def deps do [ {:exfile, "> 0.3.1"}, {:exfile_b2, "> 0.2.2"} ] end

  2. Ensure exfile_b2 is started before your application:

    def application do [ applications: [ :exfile, :exfile_b2 ] ] end

  3. Configure the backend in config.exs (or environment equivalent)

    config :exfile, Exfile, backends: %{ "store" => {ExfileB2.Backend, hasher: Exfile.Hasher.Random, account_id: "the Account ID to your B2 account", application_key: "the Application Key to your B2 account", bucket: "name of the bucket to store files" } }

  4. Configure ExfileB2's local cache maximum size (optional, default 100 MB)

    config :exfile_b2, :local_cache_size, 100_000_000 # bytes

exfile-b2's People

Contributors

keichan34 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.