laravel cache index with multiple keys

Posted 11 months ago by mohammad6006

I need to cache item selected by users and get items by users and categories seprated

user selected item key:user1 value:[category1:item1 , category1:item2, category3:item5 ,...]

how can I store and get selected items by category

for example category1 items => [item1,item2]

Please sign in or create an account to participate in this conversation.