Open
Description
In my Ruby application, I am attempting to cache LDAP requests to improve performance. I want to cache the requests by filter, but Net::LDAP::Filter doesn't implement the hash method correctly, which messes up the caching solution that I am using:
irb(main):001:0> Net::LDAP::Filter.present("cn").hash == Net::LDAP::Filter.present("cn").hash
=> false
Some simple hash support for LDAP filters would be nice. For now I'll just use the string returned by the filter's .inspect
method as the key for my cache instead.