Add get_cache method to ChatService
This commit is contained in:
parent
fd64dc9f2a
commit
4b1d5aa2b6
1 changed files with 7 additions and 1 deletions
|
|
@ -236,6 +236,12 @@ class ChatService(Service):
|
||||||
logger.error(f"Error closing connection: {exc}")
|
logger.error(f"Error closing connection: {exc}")
|
||||||
self.disconnect(client_id)
|
self.disconnect(client_id)
|
||||||
|
|
||||||
|
def get_cache(self, client_id: str) -> Any:
|
||||||
|
"""
|
||||||
|
Get the cache for a client.
|
||||||
|
"""
|
||||||
|
return self.chat_cache.get(client_id)
|
||||||
|
|
||||||
|
|
||||||
def dict_to_markdown_table(my_dict):
|
def dict_to_markdown_table(my_dict):
|
||||||
markdown_table = "| Key | Value |\n|---|---|\n"
|
markdown_table = "| Key | Value |\n|---|---|\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue