module Tourmaline::HashPersistence

Included Modules

Direct including types

Defined in:

tourmaline/persistence/hash_persistence.cr

Instance Method Summary

Instance methods inherited from module Tourmaline::Persistence

chat_exists?(chat_id : Int) : Bool chat_exists?, cleanup_p cleanup_p, get_chat(chat_id : Int) : Chat | Nil get_chat, get_chats_from_update(update : Update) get_chats_from_update, get_user(user_id : Int) : User | Nil get_user, get_users_from_update(update : Update) get_users_from_update, handle_persistent_update(update : Update) handle_persistent_update, init_p init_p, insert_user(user : User) : User insert_user, update_chat(chat : Chat) : Chat update_chat, update_user(user : User) : User update_user, user_exists?(user_id) : Bool user_exists?

Instance Method Detail

def chat_exists?(chat_id : Int) : Bool #

[View source]
def chat_exists?(username : String) : Bool #

[View source]
def cleanup_p #

[View source]
def get_chat(chat_id : Int) : Chat | Nil #

[View source]
def get_chat(username : String) : User | Nil #

[View source]
def get_user(user_id : Int) : User | Nil #

[View source]
def get_user(username : String) : User | Nil #

[View source]
def handle_persistent_update(update : Update) #

[View source]
def init_p #

[View source]
def insert_chat(chat : Chat) : Chat #

[View source]
def insert_user(user : User) : User #

[View source]
def persisted_chat_ids #

[View source]
def persisted_chats #

[View source]
def persisted_user_ids #

[View source]
def persisted_users #

[View source]
def update_chat(chat : Chat) : Chat #

[View source]
def update_user(user : User) : User #

[View source]
def user_exists?(user_id : Int) : Bool #

[View source]
def user_exists?(username : String) : Bool #

[View source]