namecache redesign

Andrew Bartlett abartlet at
Fri Aug 30 20:24:00 GMT 2002

tridge at wrote:
> Tim,
> > How about keeping basically the same API in namecache.c (i.e expiry
> > based on time_t) but with an appropriate key prefix as you suggest?
> What I'd like to see is a lib/gencache.c module that provides a string
> based cache. So all cache entries would have string keys and string
> values.
> key: NBT/name#1c
> value:

Perhaps this (the value) should be prefixed with the current unix time,
in seconds since 1970?  That should get us nice cache expiration

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba-technical mailing list