mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 23:33:37 +08:00
20 lines
357 B
Ruby
20 lines
357 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require_dependency "plugin_store"
|
||
|
|
||
|
module DiscourseNarrativeBot
|
||
|
class Store
|
||
|
def self.set(key, value)
|
||
|
::PluginStore.set(PLUGIN_NAME, key, value)
|
||
|
end
|
||
|
|
||
|
def self.get(key)
|
||
|
::PluginStore.get(PLUGIN_NAME, key)
|
||
|
end
|
||
|
|
||
|
def self.remove(key)
|
||
|
::PluginStore.remove(PLUGIN_NAME, key)
|
||
|
end
|
||
|
end
|
||
|
end
|