class Sepia::FileStorage::WatcherConfig

Overview

File system watcher for external change detection.

Automatically monitors the storage directory for external changes and invalidates cache entries when files are modified.

storage = FileStorage.new("./data", watch: true)
storage.watcher_running? # => true

Simple configuration class for file system watcher

Defined in:

sepia/file_storage.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(enabled : Bool) #

[View source]

Class Method Detail

def self.from(config : Bool | Hash) #

[View source]

Instance Method Detail

def enabled : Bool #

[View source]
def enabled=(enabled : Bool) #

[View source]
def latency : Float64 #

[View source]
def latency=(latency : Float64) #

[View source]
def recursive : Bool #

[View source]
def recursive=(recursive : Bool) #

[View source]