There are a number of methods which return a boolean indicating whether or not an error occurred. However there's no way to get what the error was. This makes the interface feel very C-like, and not at all like a modern object-orientated language.
Why do these methods return a bool, rather than throwing an exception on failure?
In addition, get, getMultiple and has don't return a bool, so there's no way of indicating an error in the same way as the other methods.
As a separate issue, the $ttl parameter to set can take an int, but there's no indication of the units of this value in the doc comment. What happens if a negative or zero interval is given? Is an exception thrown? What?
I think I'm correct in remembering that if you haven't modified the config file which was installed by pacman, then a new version of the config file will simply overwrite the old one. .pacnew files only appear when you've made changes to the old config file, and pacman doesn't want to throw away your changes.
It's a gem. While you can have PKGBUILDs for gems, I personally don't see the point -- gems have their own packaging standards, their own update system, etc....
There are a number of methods which return a boolean indicating whether or not an error occurred. However there's no way to get what the error was. This makes the interface feel very C-like, and not at all like a modern object-orientated language.
Why do these methods return a bool, rather than throwing an exception on failure?
In addition,
get,getMultipleandhasdon't return a bool, so there's no way of indicating an error in the same way as the other methods.As a separate issue, the
$ttlparameter tosetcan take anint, but there's no indication of the units of this value in the doc comment. What happens if a negative or zero interval is given? Is an exception thrown? What?I think I'm correct in remembering that if you haven't modified the config file which was installed by pacman, then a new version of the config file will simply overwrite the old one. .pacnew files only appear when you've made changes to the old config file, and pacman doesn't want to throw away your changes.
If you read it again, you'll see that I asked questions. I imagine other people reading this PSR for the first time will have similar questions.
People like yourself can provide answers to these questions, if you're more in the know than I am.
My server uses duplicity, using a version of the wrapper dt-s3-backup, to back up to amazon s3.
Nightly incrementals with a full backup every two weeks. It's saved my bacon more than once.
It's a gem. While you can have PKGBUILDs for gems, I personally don't see the point -- gems have their own packaging standards, their own update system, etc....