@@ -128,26 +128,84 @@ public interface IServer
128
128
/// </remarks>
129
129
Task < ValkeyValue > EchoAsync ( ValkeyValue message , CommandFlags flags = CommandFlags . None ) ;
130
130
131
-
132
-
131
+ /// <summary>
132
+ /// Get the values of configuration parameters.
133
+ /// </summary>
134
+ /// <seealso href="https://valkey.io/commands/config-get"/>
135
+ /// <param name="pattern">The pattern to match configuration parameters. If not specified, returns all parameters.</param>
136
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
137
+ /// <returns>An array of key-value pairs representing configuration parameters and their values.</returns>
133
138
Task < KeyValuePair < string , string > [ ] > ConfigGetAsync ( ValkeyValue pattern = default , CommandFlags flags = CommandFlags . None ) ;
134
139
140
+ /// <summary>
141
+ /// Reset the statistics reported by the INFO command.
142
+ /// </summary>
143
+ /// <seealso href="https://valkey.io/commands/config-resetstat"/>
144
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
135
145
Task ConfigResetStatisticsAsync ( CommandFlags flags = CommandFlags . None ) ;
136
146
147
+ /// <summary>
148
+ /// Rewrite the configuration file with the current configuration.
149
+ /// </summary>
150
+ /// <seealso href="https://valkey.io/commands/config-rewrite"/>
151
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
137
152
Task ConfigRewriteAsync ( CommandFlags flags = CommandFlags . None ) ;
138
153
154
+ /// <summary>
155
+ /// Set a configuration parameter to the given value.
156
+ /// </summary>
157
+ /// <seealso href="https://valkey.io/commands/config-set"/>
158
+ /// <param name="setting">The configuration parameter to set.</param>
159
+ /// <param name="value">The value to set for the configuration parameter.</param>
160
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
139
161
Task ConfigSetAsync ( ValkeyValue setting , ValkeyValue value , CommandFlags flags = CommandFlags . None ) ;
140
162
163
+ /// <summary>
164
+ /// Return the number of keys in the selected database.
165
+ /// </summary>
166
+ /// <seealso href="https://valkey.io/commands/dbsize"/>
167
+ /// <param name="database">The database index. If -1, uses the current database.</param>
168
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
169
+ /// <returns>The number of keys in the database.</returns>
141
170
Task < long > DatabaseSizeAsync ( int database = - 1 , CommandFlags flags = CommandFlags . None ) ;
142
171
172
+ /// <summary>
173
+ /// Delete all the keys of all databases on the server.
174
+ /// </summary>
175
+ /// <seealso href="https://valkey.io/commands/flushall"/>
176
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
143
177
Task FlushAllDatabasesAsync ( CommandFlags flags = CommandFlags . None ) ;
144
178
179
+ /// <summary>
180
+ /// Delete all the keys of the selected database.
181
+ /// </summary>
182
+ /// <seealso href="https://valkey.io/commands/flushdb"/>
183
+ /// <param name="database">The database index. If -1, uses the current database.</param>
184
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
145
185
Task FlushDatabaseAsync ( int database = - 1 , CommandFlags flags = CommandFlags . None ) ;
146
186
187
+ /// <summary>
188
+ /// Return the UNIX timestamp of the last successful save to disk.
189
+ /// </summary>
190
+ /// <seealso href="https://valkey.io/commands/lastsave"/>
191
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
192
+ /// <returns>The timestamp of the last successful save.</returns>
147
193
Task < DateTime > LastSaveAsync ( CommandFlags flags = CommandFlags . None ) ;
148
194
195
+ /// <summary>
196
+ /// Return the current server time.
197
+ /// </summary>
198
+ /// <seealso href="https://valkey.io/commands/time"/>
199
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
200
+ /// <returns>The current server time.</returns>
149
201
Task < DateTime > TimeAsync ( CommandFlags flags = CommandFlags . None ) ;
150
202
203
+ /// <summary>
204
+ /// Display some computer art and the Valkey version.
205
+ /// </summary>
206
+ /// <seealso href="https://valkey.io/commands/lolwut"/>
207
+ /// <param name="flags">Command flags are not supported by GLIDE.</param>
208
+ /// <returns>A string containing computer art and version information.</returns>
151
209
Task < string > LolwutAsync ( CommandFlags flags = CommandFlags . None ) ;
152
210
153
211
/// <summary>
0 commit comments