class Pomfire::FileCache

Defined in:

pomfire/file_cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(b2 : B2::Client = B2::Client.new, b2_bucket : String = ENV["POMF_B2_BUCKET"], file_dir : String = ENV["POMF_CACHE_DIR"], max_size = ENV["POMF_CACHE_MAX_SIZE"]) #

[View source]

Instance Method Detail

def get_file(name : String, &) : FileStatus #

[View source]
def put_file(name : String, io : IO) : Nil #

[View source]