Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add redis-db module to upstream?
- X-seq: zsh-workers 41253
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Add redis-db module to upstream?
- Date: Wed, 7 Jun 2017 15:10:06 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=7D9TyZpiY4296gxVEwXv8zheUV/fnRZtS4dGJ27XmR8=; b=tO8v2520ghDekz7fgAl7FAaACyDRLmWreYDbrKkkLzcuy624dTCXn9c5EPQGSWst0T yvYp+iBio+Z2U0aPsRUobdNYvfNBgB7xRDUi1jQ80Z6Doz/NH4IvFcdIQ7vFJElW89th +BcRrGZ8jrrQJWAcclVAqYhb29ACAjGzr0jMqx2ncrsNWX7x1ejZsgWsWot1xwmgizZO TykDHajJdR1Dy/v+0KdTVD91iVHcHUMDnSuAWVHM+Ob/UroZVTYlcZ8qxj55Is+2/a+s N59xwOXDEx0yufK3B6Vi28WARKes937ZSboQAR5gs7eVzAnAfA6GR+et2F9EpUrG4eio bm7A==
- In-reply-to: <16324.1496827747@thecus.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.59322bde.6763845e.1a9@MacMini.local> <170603100908.ZM13230@torch.brasslantern.com> <1496518513.3749643.997726048.04EDD04E@webmail.messagingengine.com> <16324.1496827747@thecus.kiddle.eu>
On Jun 7, 11:29am, Oliver Kiddle wrote:
}
} Certrainly we want to take care that the hiredis dependency isn't making
} a zsh build more complicated. Perhaps the module could be disabled by
} default.
I believe this can be taken care of by configure, in the same way that
gdbm and pcre are left uncompiled if configure can't find them.
} I'd also agree with the points made by Bart such as unifying
} ztie, perhaps with a generic typeset option: typeset -o file=...
I think a separate builtin like ztie is the right way to go here,
rather than further overloading typeset. We need a way to select
the module (ztie -d ...) and to specify external objects (ztie -f
and possibly other options if the notion of a "file" doesn't match
the usage).
} As for use, I've never actually got around to trying the gdbm module.
} What is it mostly good for? Very large variables or sharing variables?
Mostly it's for providing a shell-level interface to anything you would
store in a simple attibute-value database. Specifically to zsh it can
be used to share state among shells (for example IF we could rely on it
gdbm woule be a much better file store for _store_cache/_retrieve_cache
than the current mechanism of serializing arrays).
If I understand redis's built-in clustering mechanism correctly, it
could be used to share state among shells on different hosts as well.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author