O
O
obvilion2017-12-31 14:35:45
PHP
obvilion, 2017-12-31 14:35:45

Search by specific values ​​in keys in Memcacmed?

Hello, please help.
There is data stored in memcached:
data[1] = ['user_id' => 1, 'login' => 'admin', 'date' => 12121212];
data[2] = ['user_id' => 999, 'login' => 'user', 'date' => 5555555];
data[3] = ['user_id' => 50, 'login' => 'polzovatel', 'date' => 233333];
I need to find out in which array of the above the date is the largest (it is in unix time) - that is, I need to find the array in which the action was performed last. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-12-31
@obvilion

there is no way
to search by values, except to sort through all the keys
using Mongo or Aerospike

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question