I think have a solution in trunk. You will not need to specify length and should work.
On Jan 31, 8:40 pm, kenji4569 <[email protected]> wrote: > 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

