I use Anki but it's insufficient as a sole tool for learning. Being able to memorize e.g. foreign language vocab (or grammar patterns using clozes) is very valuable but you won't become fluent without daily or almost-daily practice communicating using the language.