mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 09:45:27 -04:00
e8f8f17f1a
* feat: add redis distribute lock * refactor: use structured logging for python env --------- Co-authored-by: Yeuoly <admin@srmxy.cn>
26 lines
334 B
Go
26 lines
334 B
Go
package helper
|
|
|
|
import "strings"
|
|
|
|
func PluginInstallationCacheKey(pluginId, tenantId string) string {
|
|
return strings.Join(
|
|
[]string{
|
|
"plugin_id",
|
|
pluginId,
|
|
"tenant_id",
|
|
tenantId,
|
|
},
|
|
":",
|
|
)
|
|
}
|
|
|
|
func EndpointCacheKey(hookId string) string {
|
|
return strings.Join(
|
|
[]string{
|
|
"hook_id",
|
|
hookId,
|
|
},
|
|
":",
|
|
)
|
|
}
|