module Circed::Core::Repository(T)

Overview

Base repository interface for managing entities

Included Modules

Direct including types

Defined in:

circed/core/interfaces.cr

Instance Method Summary

Instance Method Detail

abstract def []=(id : String, entity : T) : T #

[View source]
abstract def []?(id : String) : T | Nil #

[View source]
abstract def clear : Nil #

[View source]
abstract def delete(id : String) : T | Nil #

[View source]
abstract def each(& : T -> ) : Nil #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]
abstract def size : Int32 #
Description copied from module Enumerable(T)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]