This commit is contained in:
kzkzzzz
2025-04-20 18:22:49 +08:00
parent 4d51d0a1d0
commit db3d256bd7
2 changed files with 22 additions and 0 deletions

View File

@@ -225,6 +225,12 @@ func (c *Config) Get(key string) any {
return c.kof.Get(key)
}
func (c *Config) Exists(key string) bool {
c.RLock()
defer c.RUnLock()
return c.kof.Exists(key)
}
func (c *Config) GetString(key string) string {
c.RLock()
defer c.RUnLock()