When I run the following code:

db(db.xxx.id==1).select(cache=(cache.memcache, 5))

I got MemcachedKeyLengthError: Key length is > 250.

Since xxx table has many fields, the sql used for the key readily
reached the limit.

I just want to specify the cache key, but I couldn't, given the
dal.py:

(cache_model, time_expire) = attributes['cache']
del attributes['cache']
key = self.uri + '/' + sql
rows = cache_model(key, lambda: response(sql), time_expire)

Please help.
Thanks in advance, Kenji

Reply via email to