Versions in this module Expand all Collapse all v1 v1.83.0 Jul 13, 2024 Changes in this version + const TopBrandsCount + const TopCategoriesCount + const TopFactoriesCount + const TopPersonsCount + const TopTwinsBrandsCount + type BrandsCache struct + Items []items.Item + Total int + type Index struct + func NewIndex(redis *redis.Client, repository *items.Repository) *Index + func (s *Index) BrandsCache(ctx context.Context, lang string) (BrandsCache, error) + func (s *Index) CategoriesCache(ctx context.Context, lang string) ([]items.Item, error) + func (s *Index) FactoriesCache(ctx context.Context, lang string) ([]items.Item, error) + func (s *Index) GenerateBrandsCache(ctx context.Context, lang string) error + func (s *Index) GenerateCategoriesCache(ctx context.Context, lang string) error + func (s *Index) GenerateFactoriesCache(ctx context.Context, lang string) error + func (s *Index) GeneratePersonsCache(ctx context.Context, pictureItemType pictures.ItemPictureType, lang string) error + func (s *Index) GenerateTwinsCache(ctx context.Context, lang string) error + func (s *Index) PersonsCache(ctx context.Context, pictureItemType pictures.ItemPictureType, lang string) ([]items.Item, error) + func (s *Index) TwinsCache(ctx context.Context, lang string) (TwinsCache, error) + type TwinsCache struct + Count int + Res []items.Item