mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
24 lines
577 B
Text
24 lines
577 B
Text
##! The storage framework provides a way to store long-term data to disk.
|
|
|
|
@load base/bif/storage.bif
|
|
|
|
module Storage;
|
|
|
|
export {
|
|
## Record for passing arguments to :zeek:see:`Storage::put`.
|
|
type PutArgs: record {
|
|
# The key to store the value under.
|
|
key: any;
|
|
|
|
# The value to store associated with the key.
|
|
value: any;
|
|
|
|
# Indicates whether this value should overwrite an existing entry for the
|
|
# key.
|
|
overwrite: bool &default=T;
|
|
|
|
# An interval of time until the entry is automatically removed from the
|
|
# backend.
|
|
expire_time: interval &default=0sec;
|
|
};
|
|
}
|