commit | 105c8e63680e7fa4c9d19a4240ce5c24921ebefa | [log] [tgz] |
---|---|---|
author | Dragan Dosen <ddosen@haproxy.com> | Mon Jun 29 16:43:26 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 30 10:43:03 2015 +0200 |
tree | 58a777a4bd56ea7b90e05aff0dfe93d582a1f28e | |
parent | 93b38d9191a2f03d623cd697b509d00cd9b9d00f [diff] |
MEDIUM: 51d: add LRU-based cache on User-Agent string detection This cache is used by 51d converter. The input User-Agent string, the converter args and a random seed are used as a hashing key. The cached entries contains a pointer to the resulting string for specific User-Agent string detection. The cache size can be tuned using 51degrees-cache-size parameter.