Module zotonic_fileindexer_cache

Find (and cache) files in directories.

Copyright © 2018 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Find (and cache) files in directories.

Function Index

code_change/3
find/3Find all files underneath a app/dir.
flush/0
flush/2
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0
terminate/2

Function Details

code_change/3

code_change(Version, State, Extra) -> any()

find/3

find(App::atom(), SubDir::file:filename_all(), OptPattern::binary() | list() | undefined) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}

Find all files underneath a app/dir. Optional with a certain extension.

flush/0

flush() -> ok

flush/2

flush(App::atom(), SubDir::file:filename_all()) -> ok

handle_call/3

handle_call(Cmd, From, State) -> any()

handle_cast/2

handle_cast(Cmd, State) -> any()

handle_info/2

handle_info(Cmd, State) -> any()

init/1

init(Args) -> any()

start_link/0

start_link() -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc