···250250 return nil, fmt.Errorf("at-identifier neither a Handle nor a DID")
251251}
252252253253+func (d *CacheDirectory) ResolveDID(ctx context.Context, did syntax.DID) (map[string]any, error) {
254254+ // XXX: cache this kind of doc separately
255255+ return d.Inner.ResolveDID(ctx, did)
256256+}
257257+253258func (d *CacheDirectory) Purge(ctx context.Context, a syntax.AtIdentifier) error {
254259 handle, err := a.AsHandle()
255260 if nil == err { // if not an error, is a handle
+5
atproto/identity/redisdir/redis_directory.go
···384384 }
385385 return errors.New("at-identifier neither a Handle nor a DID")
386386}
387387+388388+func (d *RedisDirectory) ResolveDID(ctx context.Context, did syntax.DID) (map[string]any, error) {
389389+ // XXX: cache this kind of doc separately
390390+ return d.Inner.ResolveDID(ctx, did)
391391+}