Comparison

plugins/mod_storage_memory.lua @ 12977:74b9e05af71e

plugins: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 24 Mar 2023 13:15:28 +0100
parent 11277:1256f32f21b6
child 13213:50324f66ca2a
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
1 local serialize = require "util.serialization".serialize; 1 local serialize = require "prosody.util.serialization".serialize;
2 local array = require "util.array"; 2 local array = require "prosody.util.array";
3 local envload = require "util.envload".envload; 3 local envload = require "prosody.util.envload".envload;
4 local st = require "util.stanza"; 4 local st = require "prosody.util.stanza";
5 local is_stanza = st.is_stanza or function (s) return getmetatable(s) == st.stanza_mt end 5 local is_stanza = st.is_stanza or function (s) return getmetatable(s) == st.stanza_mt end
6 local new_id = require "util.id".medium; 6 local new_id = require "prosody.util.id".medium;
7 local set = require "util.set"; 7 local set = require "prosody.util.set";
8 8
9 local auto_purge_enabled = module:get_option_boolean("storage_memory_temporary", false); 9 local auto_purge_enabled = module:get_option_boolean("storage_memory_temporary", false);
10 local auto_purge_stores = module:get_option_set("storage_memory_temporary_stores", {}); 10 local auto_purge_stores = module:get_option_set("storage_memory_temporary_stores", {});
11 11
12 local archive_item_limit = module:get_option_number("storage_archive_item_limit", 1000); 12 local archive_item_limit = module:get_option_number("storage_archive_item_limit", 1000);