MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / changeRedisPassword

Function changeRedisPassword

frontend/src/api/modules/database.ts:168–173  ·  view source on GitHub ↗
(database: string, password: string)

Source from the content-addressed store, hash-verified

166 return http.post(`/databases/redis/install/cli`, {}, TimeoutEnum.T_5M);
167};
168export const changeRedisPassword = (database: string, password: string) => {
169 if (password) {
170 password = encodeBase64(password);
171 }
172 return http.post(`/databases/redis/password`, { database: database, value: password });
173};
174export const updateRedisPersistenceConf = (params: Database.RedisConfPersistenceUpdate) => {
175 return http.post(`/databases/redis/persistence/update`, params);
176};

Callers

nothing calls this directly

Calls 2

encodeBase64Function · 0.90
postMethod · 0.80

Tested by

no test coverage detected